Permalink
Browse files

Improved simplecov exception handling

  • Loading branch information...
1 parent 4b27e78 commit 0faf6dd04ce73d21a012e2a7e43078048a4074a1 @bfaloona committed Aug 3, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 features/step_definitions/support/env.rb
  2. +1 −1 lib/indy.rb
  3. +1 −1 spec/helper.rb
@@ -1,7 +1,7 @@
begin
require 'simplecov'
SimpleCov.start if ENV["COVERAGE"]
-rescue
+rescue Exception => e
puts 'Run "gem install simplecov" to enable code coverage reporting'
end
View
@@ -1,7 +1,7 @@
begin
require 'simplecov'
SimpleCov.start if ENV["COVERAGE"]
-rescue
+rescue Exception => e
# ignore
end
View
@@ -1,7 +1,7 @@
begin
require 'simplecov'
SimpleCov.start if ENV["COVERAGE"]
-rescue
+rescue Exception => e
puts 'Run "gem install simplecov" to enable code coverage reporting'
end

0 comments on commit 0faf6dd

Please sign in to comment.