Displaying 1 result from an estimated 1 matches for "gump_rewrite".
2007 Oct 12
3
Strange mock_model behaviour with ActiveResource model
...)
FaCode.stub!(:find).and_return([@fa_code])
end
generates this failure:
NameError in ''FaCodesController handling GET /fa_codes should assign
the found fa_codes for the view''
uninitialized constant Spec::Rails::Initializer
(eval):11:in `class''
/home/jhughes/dev/rj/gump_rewrite/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/rails_example.rb:85:in
`add_stubs''
/home/jhughes/dev/rj/gump_rewrite/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/rails_example.rb:73:in
`mock_model''
./spec/controllers/fa_codes_controller_spec.rb:64:
This i...