In case of failure the normal
should be_redirect and its friends are far from helpful...
expected redirect? to return true, got false expected "new", got nil
Status should be redirect but was 200(success) - rendered addresses/new - Flash: :error = Address contains errors! - Errors:Errors on @address(Address): City can't be blank
script/plugin install git://github.com/grosser/rspec_response_enhancer.git
Spec::Runner.configure do |config| ... config.include(RspecResponseEnhancer) ... end
redirect_to like normal.
I chose not to globally overwrite
So ATM to get enhanced benefits use
response.should have_been_success response.should have_been_error response.should have_been_missing response.should have_been_redirect
Hereby placed under public domain, do what you want, just do not hold me accountable...