Displaying 1 result from an estimated 1 matches for "spacefil".
Did you mean:
spacefile
2008 Jun 12
0
Mysterious interaction between RSpec 1.1.4 and has_finder/named_scope
...''m still a bit mystified, because I''m having a problem caused by this on
RSpec 1.1.4, but not on 1.1.3, and I don''t see a difference in code which
would explain it.
The basic problem, which I encountered upgrading our rails app to RSpec
1.1.4 was a case like this:
class SpaceFile < ActiveRecord::Base
named_scope :public
...
end
In a spec I have code like this:
...
11: model = Model.new
12: model.stub!(:path).and_return("x/y")
NoMethodError in ''SpaceFile be readable''
You have a nil object when you didn''t expect it!
The...