Permalink
Browse files

rescue gem load error seperate from load error in spec_helper

  • Loading branch information...
maxjustus authored and indirect committed Oct 18, 2011
1 parent 963d23c commit 404e13e36e17dfa64635cfca902824cd538fa70e
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/spec_helper.rb
View
@@ -3,6 +3,10 @@
begin
gem 'psych'
+rescue Gem::LoadError
+end
+
+begin
require 'psych'
rescue LoadError
ensure

0 comments on commit 404e13e

Please sign in to comment.