Skip to content
This repository has been archived by the owner on May 2, 2020. It is now read-only.

Commit

Permalink
Expect 500 error
Browse files Browse the repository at this point in the history
  • Loading branch information
rwojsznis committed Mar 15, 2015
1 parent c083a0c commit ea8c16d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/middleware_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@
}

it 'raises an error' do
expect { get '/' }.to raise_error(Rack::RequestPolice::NoStorageFound)
get '/'
expect(last_response.status).to eq 500
end
end

Expand Down

0 comments on commit ea8c16d

Please sign in to comment.