Displaying 2 results from an estimated 2 matches for "personalcod".
Did you mean:
personalcode
2007 Feb 13
16
Error against latest trunk while testing via spec for model
Hi
I just did an update to lates trunk
=================
context "Given a generated venue_spec.rb with fixtures loaded" do
fixtures :venues
specify "fixtures should load two Venues" do
Venue.should have(2).records
end
end
==================
gives me
==========
1)
TypeError in ''Given a generated venue_spec.rb with fixtures loaded
fixtures should load two
2007 Jan 30
5
errors while testing resource controller using rpec
...9;'}).and_return(@mock_venue)
do_post
end
end
==========================
and the test fails as
===============
TypeError in ''Requesting /venues using POST should create a new venue''
can''t convert Fixnum into String
(eval):19:in `venue_url''
/home/deepak/personalcode/worlds/config/../app/controllers/venues_controller.rb:43:in
`create''
/home/deepak/personalcode/worlds/config/../app/controllers/venues_controller.rb:40:in
`create''
./spec/controllers/venues_controller_spec.rb:242:in `do_post''
./spec/controllers/venues_controller_spec.rb:...