We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8aca7d commit 4ed211eCopy full SHA for 4ed211e
spec/aws/session_store/dynamo_db/error/default_error_handler_spec.rb
@@ -41,8 +41,10 @@
41
it "catches exception for inaccurate table key" do
42
client.stub(:update_item).and_raise(key_error)
43
client.stub(:get_item).and_raise(key_error)
44
- get "/"
45
- last_request.env["rack.errors"].string.should include(key_error_msg)
+ lambda do
+ get '/'
46
+ last_request.env['rack.errors'].string.should include(key_error_msg)
47
+ end.should raise_error(key_error)
48
end
49
50
0 commit comments