Skip to content
Snippets Groups Projects
Commit 0037d2e2 authored by Ben Woosley's avatar Ben Woosley
Browse files

Don't capture exception if we aren't going to use it

parent 12ffe1a9
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,6 @@ class MongoidTest < Test::Unit::TestCase ...@@ -26,6 +26,6 @@ class MongoidTest < Test::Unit::TestCase
end end
end end
rescue LoadError => crash rescue LoadError
warn 'Mongoid not installed, not tested.' warn 'Mongoid not installed, not tested.'
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment