Permalink
Browse files

Change 'Exception' to 'StandardError'.

  • Loading branch information...
ACRE
ACRE committed Oct 18, 2013
1 parent bbbb0c4 commit 974310aa9a42edabda60f5f25f26f757f26c2425
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/shared/checkpoint.rb
@@ -15,9 +15,9 @@
end
context 'when some unhandled exception is raised' do
- When(:result) { checkpoint.call { raise Exception } }
+ When(:result) { checkpoint.call { raise StandardError } }
- Then { result == Failure(Exception) }
+ Then { result == Failure(StandardError) }
Then { elapsed < wait_time }
end

2 comments on commit 974310a

Member

david replied Oct 19, 2013

In this case Exception is the right Exception, because we want to raise an unhandled error. Is there a way to tell ACRE that the change is wrong? (@shoe)

Owner

shoe replied Oct 19, 2013

There's no automated way right now. I think the bug here is that it's not even looking for a rescue statement.

Please sign in to comment.