Displaying 20 results from an estimated 9000 matches similar to: "Migration Error"
2006 Sep 03
2
Fwd: Dealing with exec?
---------- Forwarded message ----------
From: Kevin Clark <kevin.clark at gmail.com>
Date: 01-Sep-2006 20:31
Subject: Dealing with exec?
To: James Mead <jamesmead44 at gmail.com>
Hey James,
Sorry to bug you. I was curious how you''d handle a call to exec in a
method you were testing. Kernel.stubs(:exec)... doesn''t seem to work
but I''m not sure where else an
2006 Dec 21
4
Stubbing Kernel#open
Anyone know how to stub Kernel#open? I''m trying to mock/stub an
open-uri call, but it doesn''t seem to like it.
Here''s the test code, and the failures:
body = File.open(File.dirname(__FILE__) +
''/../fixtures/google_search_california.html'').read
2006 Sep 03
1
Returning different values with stubs
Right now I''m working on adding tests to a method that looks like this:
def get_via_redirect(path, args={})
get path, args
follow_redirect! while redirect?
status
end
So, I want to confirm that get is called and that status is returned
but I also want to see that when the value of redirect? effects how
many times follow_redirect is called. Is there
2006 Sep 03
1
Slimmed down version for inclusion in Rails?
I''m pushing a major overhaul in testing the Rails codebase. Mocha and
stubba make my life easy so that''s what I''m using. The first major
patch using them is in RailTies
(http://dev.rubyonrails.org/ticket/5970) now. I spoke to DHH today
about using it in the other libraries and I think it''ll be ok, but
they really want to include as little code as needed. I
2007 Jun 11
12
Mocking system/`
This drives me insane on a regular basis. How does one mock
system(''blah'') or `blah` ?
Adding expectations on Kernel doesn''t do it. Adding expectations on
Object just makes me sad:
Object.any_instance.expects(:system).with(''ls'')
# => #<Mock:0x12b584e>.system(''ls'') - expected calls: 0, actual calls: 1
And this really
2006 Nov 04
0
Problem with edge rails, controller namespaces and routes
I just upgraded to edge rails so I can use the BigDecimal support for
monetary calculations. I''ve just come across the following problem..
Right now, I''ve got a content controller which is responsible for
updating much of my site''s content. I''ve decided to make this a
subclass of Admin, so I can organize my administrative related
controllers into their own
2006 May 16
0
acts_as_authenticated vs. login_engine
which to use? we''re not doing anyting too fancy, though that may change -- we
might need rbac in the future. i''m using loging_engine right now, pretty
happily, but i came across a blog entry that claims acts_as_authenticated is
the latest and greatest. if anyone has some pros and cons to share, i''d
appreciate it -- would like to make the correct choice before we launch
2006 May 30
0
The ARTS Plugin: Another RJS Testing System
If you missed it, I''ve written a plugin for testing RJS that uses
(basically) the same syntax as the RJS templates themselves. Here''s a
taste:
assert_rjs :alert, ''Hi!''
assert_rjs :assign, ''a'', ''2''
assert_rjs :call, ''foo'', ''bar'', ''baz''
assert_rjs :draggable,
2006 Sep 03
0
Reducing object polution and mocha?
Hi Kevin,
Not currently, I''m afraid - I always realised it was a possible problem, but
we haven''t run into it in our use of Mocha so far. I guess you''re pushing
the envelope with it, which is great.
If you only need to do it for one or two objects, you could just undefine
the offending methods. In the meantime I''ll look into a better solution. It
may not be
2006 Aug 23
1
Re: STI and Joins Broken
Can I get some feedback on ticket 5838? I''ve got a patch and testcase
that works. Rick seems to be opposed to the patch because I''m not
solving all the join issues, but I''d argue that you should at the very
least get the sort of object your asked for back.
Account.find_by_sql() should -never- return something other than
Account objects.
--
Kevin Clark
2006 Aug 27
6
Rails configuration for sessions
I''m trying to get the configuration done for sessions but I can''t seem
to find any documentation on how to do it beyond the merest of basics.
I would rather have something that would NOT persist a marshalled object
to the database since that''s just not something I want to do. I want to
be able to read the data for one.
But there''s really nothing to
2007 Jan 17
8
Mocha Mock''s hanging on after test run?
Hi guys,
I''m running mocha (0.3.2) against Rails core and just found an issue
where the mock doesn''t go away after the test is run.
For example:
def test_reset_bang_doesn_reinstall_named_routes
ActionController::Routing::Routes.named_routes.expects(:install).never
@session.reset!
end
def test_zzz
puts ActionController::Routing::Routes.named_routes.inspect
2010 Sep 30
3
Cannot destroy snapshots: dataset does not exist
Hello,
I have a ZFS filesystem (zpool version 26 on Nexenta CP 3.01) which I''d like to rollback but it''s having an existential crisis.
Here''s what I see:
root at bambi:/# zfs rollback bambi/faline/userdocs at AutoD-2010-09-28
cannot rollback to ''bambi/faline/userdocs at AutoD-2010-09-28'': more recent snapshots exist
use ''-r'' to
2007 Sep 19
0
Compiling 0.9.4x on Fedora 6 32bit - OpenGL not found warning
I have been compiling my own wine RPMs using the fedora extras .spec
file for a while now.
Normally after very little editing of the .spec, the wine RPMs build and
I am running the latest & greatest wine.
Now I am having problems building *any* wine rpms ( including some of
the 0.9.3x versions) on my yum updated Fedora core 6 box.
Even when I extract a fresh copy of wine-0.9.42.tar.bz2
2006 Apr 21
4
Simple Controller/Routes Question
This is probably a very basic question, but what is the proper
controller & routing setup if I''m setting up a RoR site with static
pages, like:
http://mysite.com/about
http://mysite.com/services
http://mysite.com/contact
I want each of these pages to use a single template file that I can push
content to. It seems like overkill to create individual controllers for
about,
2007 Jun 15
2
Is it still possible to use should_have_rjs
Hi
I''ve come back to a Rails project after about a month doing other
work, and there''s a lot of changes. I was on the 0.7 branch before
and I''ve upgraded to RSpec 1.0.5. I used the spec translator, fixed
the cases where it barfed on unusual line contents, and all my model
and controller specs now pass. But I''m getting 53 failures on my view
specs,
2019 Jun 27
0
Re: [PATCH 08/11] Rust bindings: Fix memory management and format the file
---
generator/rust.ml | 461 +++++++++++++++++++++++++++++++---------------
1 file changed, 311 insertions(+), 150 deletions(-)
diff --git a/generator/rust.ml b/generator/rust.ml
index 79e16dfc6..ee65b1073 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -61,14 +61,16 @@ let generate_rust () =
pr "
use std::collections;
use std::convert;
+use std::convert::TryFrom;
use
2002 May 27
1
nlme cross-over and fixed nested
I have problem getting the concept of a nested fixed variable into the nlme
scheme. I fear the question is very stupid. In the past I had asked this
before, and never got a reply (in other cases, the response was within
hours). I also checked the S-list, where several similar enquiries of other
people are orphaned.
We have a cross-over design, where patient are treated two weeks with
placebo,
2019 Jun 27
0
[PATCH 7/9] Rust bindings: Complete actions
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
---
generator/rust.ml | 283 ++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 259 insertions(+), 24 deletions(-)
diff --git a/generator/rust.ml b/generator/rust.ml
index aa8b249ff..79e16dfc6 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -60,10 +60,11 @@ let generate_rust () =
pr "
use
2007 May 04
1
rgl install on rhel4 x86_64
I'm trying to install rgl 0.71 on a redhat enterprise 4, x86_64. I have
tried using R 2.2.1, 2.3.1, and 2.5.0. I have successfully installed
this version of rgl, using R 2.2.1 on an rhel4 i386 host. On the x86_64
host, I receive the following configuration error:
checking GL/gl.h usability... no
checking GL/gl.h presence... yes
configure: WARNING: GL/gl.h: present but cannot be