spec/warbler/config_spec.rb in warbler-1.3.6 vs spec/warbler/config_spec.rb in warbler-1.3.7
- old
+ new
@@ -17,10 +17,11 @@
it "has suitable default values" do
config = Warbler::Config.new
config.includes.should be_empty
config.jar_name.size.should > 0
+ config.override_gem_home.should be_false
end
end
context "in a web application" do
run_in_directory 'spec/sample_war'
@@ -30,15 +31,16 @@
end
it "should have suitable default values" do
config = Warbler::Config.new
config.dirs.should include(*Warbler::Config::TOP_DIRS.select{|d| File.directory?(d)})
- config.includes.should be_empty
+ config.excludes.should be_empty
config.java_libs.should_not be_empty
config.jar_name.size.should > 0
config.webxml.should be_kind_of(OpenStruct)
config.pathmaps.should be_kind_of(OpenStruct)
config.pathmaps.public_html.should == ["%{public/,}p"]
+ config.override_gem_home.should be_false
end
it "should allow configuration through an initializer block" do
config = Warbler::Config.new do |c|
c.jar_name = "mywar"