Top Level Namespace
Defined Under Namespace
Modules: Booth
Instance Method Summary collapse
Instance Method Details
#try_to_load_gem(gem_name, require_name = nil) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/booth/test.rb', line 7 def try_to_load_gem(gem_name, require_name = nil) require_name = gem_name if require_name.nil? require require_name rescue LoadError => e raise "Please add the `#{gem_name}` gem to your test group (NOT development or production) - #{e.}" end |