Skip to content

Instantly share code, notes, and snippets.

@ryanisinallofus
Created March 27, 2012 18:48
Show Gist options
  • Save ryanisinallofus/2219082 to your computer and use it in GitHub Desktop.
Save ryanisinallofus/2219082 to your computer and use it in GitHub Desktop.
Failures:
1) EventsController when authorized#create when successful should redirect to the newly created event path
Failure/Error: response.should redirect_to event_path(@event)
Expected response to be a redirect to <http://test.host/events/event85> but was a redirect to <http://test.host/events/event85/edit>
# ./spec/controllers/events_controller_spec.rb:348:in `block (5 levels) in <top (required)>'
2) EventsController when authorized#update when successful should redirect to event show
Failure/Error: response.should redirect_to event_path(@event)
Expected response to be a redirect to <http://test.host/events/event115> but was a redirect to <http://test.host/events/event115/edit>
# ./spec/controllers/events_controller_spec.rb:421:in `block (5 levels) in <top (required)>'
3) edit an event for venue admin should prevent HTML markup and preserve a carriage return in the additional info field
Failure/Error: current_path.should == event_path(@event)
expected: "/events/event684"
got: "/events/event684/edit" (using ==)
# ./spec/requests/capybara/events/edit_spec.rb:94:in `block (3 levels) in <top (required)>'
Finished in 425.94 seconds
2128 examples, 3 failures, 8 pending
Failed examples:
rspec ./spec/controllers/events_controller_spec.rb:347 # EventsController when authorized#create when successful should redirect to the newly created event path
rspec ./spec/controllers/events_controller_spec.rb:420 # EventsController when authorized#update when successful should redirect to event show
rspec ./spec/requests/capybara/events/edit_spec.rb:91 # edit an event for venue admin should prevent HTML markup and preserve a carriage return in the additional info field
R:ticketing-platform ryanrray$ git status
# On branch accounting_report
nothing to commit (working directory clean)
R:ticketing-platform ryanrray$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment