Displaying 2 results from an estimated 2 matches for "venues_controller_spec".
2007 May 20
9
How to test for exceptions
Hi folks,
I''m in the process of converting a Test::Unit functional test to RSpec, but I''ve run into a slight problem. I tried looking through the documentation but I still don''t know what I missed.
Thanks in advance,
Blake
describe VenuesController, "on update" do
before(:each) do
@venue = mock("venue")
2007 Jan 30
5
errors while testing resource controller using rpec
...''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:247:
================
the relevant portion of the controller code is
================
# POST /venues
# POST /venues.xml
def create
@venue = Venue.new(params[:venue])
respond_to do |format|
if @venue.save...