spec/warbler/config_spec.rb in warbler-0.9.1 vs spec/warbler/config_spec.rb in warbler-0.9.2

- old
+ new

@@ -18,10 +18,12 @@ config.includes.should be_empty config.java_libs.should_not be_empty config.war_name.size.should > 0 config.webxml.should be_kind_of(OpenStruct) config.webxml.pool.should be_kind_of(OpenStruct) + config.pathmaps.should be_kind_of(OpenStruct) + config.pathmaps.public_html.should == ["%{public/,}p"] end it "should allow configuration through an initializer block" do config = Warbler::Config.new do |c| c.staging_dir = "/var/tmp" @@ -37,6 +39,19 @@ mkdir_p "vendor/rails" config = Warbler::Config.new config.gems.should be_empty end + + it "should exclude Warbler itself when run as a plugin" do + config = Warbler::Config.new + config.excludes.include?("vendor/plugins/warbler").should == false + config = Warbler::Config.new File.join(Dir.getwd, "vendor", "plugins", "warbler") + config.excludes.include?("vendor/plugins/warbler").should == true + end + + #it "should automatically gems used by the web application" do + # gem "actionpack" + # config = Warbler::Config.new + # config.gems.should include("actionpack") + #end end