Fixing build on 1.8.7

This commit is contained in:
slainer68 2012-04-12 02:13:22 +02:00
parent c0e7743b14
commit d8e82f7975
1 changed files with 3 additions and 2 deletions

View File

@ -10,8 +10,9 @@ describe OmniAuth::FailureEndpoint do
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