Sha256: f355b231dbdfcb4e7bac4740408120bfc043e0fce08077d368729c68a2e69c29
Contents?: true
Size: 950 Bytes
Versions: 1
Compression:
Stored size: 950 Bytes
Contents
require 'environment/spec_helper' require 'rad/environment' require 'rad/spec/environment' describe "Environment basic spec" do before :each do SpecResult.clear end inject environment: :environment the_spec_dir = with_tmp_spec_dir with_load_path( "#{the_spec_dir}/plugin_a/lib", "#{the_spec_dir}/plugin_b/lib", "#{the_spec_dir}/app/lib" ) with_environment runtime_dir: the_spec_dir before :all do Env = Rad::Environment ::SpecResult = [] end before :each do load "app/init.rb" end after :all do remove_constants %w(SpecResult) end it "core components" do rad[:logger].should_not be_nil rad[:environment].should_not be_nil rad[:config].should_not be_nil end it "loading order" do rad[:environment] rad.register :custom_component rad[:custom_component] SpecResult.should == %w(init plugin_a) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rad_core-0.0.13 | spec/environment/standard_app_spec.rb |