test/loader_test.rb in boson-0.2.5 vs test/loader_test.rb in boson-0.3.0
- old
+ new
@@ -3,10 +3,10 @@
describe "Loader" do
def load_namespace_library
Manager.load([Boson::Commands::Namespace])
end
- before { Gem.stubs(:loaded_specs).returns({}) } if RUBY_VERSION >= '1.9.2'
+ before { Gem.stubs(:loaded_specs).returns({}) } if RUBY_VERSION >= '1.9.2' && defined? Gem
describe "config" do
before { reset }
it "from callback overridden by user's config" do
with_config(:libraries=>{'blih'=>{:namespace=>false}}) do
load :blih, :file_string=>"module Blah; def self.config; {:namespace=>'bling'}; end; end"