Displaying 1 result from an estimated 1 matches for "fundcontroller".
2007 May 16
2
very odd controller spec problem
Here''s a snippet:
it "should provide the fund" do
get(:timesheet,{:id=>@fund.id})
assigns[:fund].should == @fund
end
Works fine on my box, fails on my CI server. Here''s the output:
NoMethodError in ''The FundController timesheet should provide the fund''
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]=
./spec/controllers/fund_controller_spec.rb:19:
./script/spec:4:
The line raising is the "get" li...