Permalink
Browse files

Fixing build on 1.8.7

  • Loading branch information...
1 parent c0e7743 commit d8e82f7975d995a7ae08531078c0cecdb29cc585 @nicolasblanco nicolasblanco committed Apr 12, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/omniauth/failure_endpoint_spec.rb
@@ -10,8 +10,9 @@
end
it 'should raise out the error' do
- err = StandardError.new("Blah")
- expect{ subject.call('omniauth.error' => err) }.to raise_error(err)
+ expect do
+ subject.call('omniauth.error' => StandardError.new("Blah"))
+ end.to raise_error(StandardError, "Blah")
end
it 'should raise out an OmniAuth::Error if no omniauth.error is set' do

0 comments on commit d8e82f7

Please sign in to comment.