search for: raise_nil_warning_for

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

2010 Jul 03
0
rspec controller test strange error: undefined method `call' for nil:NilClass
...t; ''params''} assigns[:channel].should equal(mock_channel) end ------ it fails on the post :create line ....reporting undefined method `call'' for nil:NilClass at .../.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/ active_support/whiny_nil.rb:52 raise_nil_warning_for klass, method, caller 51 else 52 super 53 end 54 end another clue perhaps is that if you remove the :save => true stub option, then it works ...but fails at the if @channel.save line .....reporting Mock "Channel_1002" received unexpected message :save with (no...