Skip to content

Commit 4ed211e

Browse files
Jeff DutilJeff Dutil
authored andcommitted
Fix spec.
1 parent f8aca7d commit 4ed211e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/aws/session_store/dynamo_db/error/default_error_handler_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@
4141
it "catches exception for inaccurate table key" do
4242
client.stub(:update_item).and_raise(key_error)
4343
client.stub(:get_item).and_raise(key_error)
44-
get "/"
45-
last_request.env["rack.errors"].string.should include(key_error_msg)
44+
lambda do
45+
get '/'
46+
last_request.env['rack.errors'].string.should include(key_error_msg)
47+
end.should raise_error(key_error)
4648
end
4749
end
4850

0 commit comments

Comments
 (0)