I have a very fairly simple spec
it "should assign an instance variable" do
get 'new'
assigns[:city].should == City.new
end
In my controller
def new
@city = City.new
end
but when I run it, I get
'CitiesController GET 'new' should assign an instance variable' FAILED
expected: #<City id: nil, name: nil, created_at: nil, updated_at:
nil>,
got: #<City id: nil, name: nil, created_at: nil, updated_at:
nil> (using ==)
Those two things seem to be equal, am I wrong there?
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users