Sha256: dbbc470bd5a1c515cdcbff2ce52eb5d82f46ff3541e5721e4aeef53df6df2705
Contents?: true
Size: 774 Bytes
Versions: 24
Compression:
Stored size: 774 Bytes
Contents
require 'spec_helper' require 'rad' require 'rad/spec/environment' describe "Environment basic spec" do 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" ) before do rad.runtime_path = the_spec_dir, true $spec_result = [] end after :all do rad.delete_all :custom_component end before do load "app/init.rb" 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){true} rad.custom_component $spec_result.should == %w(init plugin_a) end end
Version data entries
24 entries across 24 versions & 1 rubygems