search for: space_file_spec

Displaying 1 result from an estimated 1 matches for "space_file_spec".

2008 Jun 12
0
Mysterious interaction between RSpec 1.1.4 and has_finder/named_scope
...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 error occurred while evaluating nil.call /Users/rick/near-time/near-time.net-exp-migrate-to-rspec-1-1-4-6750/spec/models/space_file_spec.rb:12: What''s happening is when Spec::Mocks::Proxy.define_expected_method uses class_eval to define the stub method, Ruby is calling public under the covers but instead of getting the standard method which makes the method public, it ends up calling the method generated by the named_scope...