spec/linner/environment_spec.rb in linner-0.2.0 vs spec/linner/environment_spec.rb in linner-0.3.0

- old
+ new

@@ -1,31 +1,22 @@ require "spec_helper" describe Environment do before(:each) do @env = Environment.new(root.join "config.yml") + @ary = ["app/scripts", "app/styles", "app/images", "app/views"] end - describe "convension" do - it "should equals default path folder" do - @env.app_folder.should == "app" - @env.test_folder.should == "test" - @env.vendor_folder.should == "vendor" - @env.public_folder.should == "public" - end + it "should equals default path folder" do + @env.paths.should =~ @ary + @env.app_folder.should == "app" + @env.test_folder.should == "test" + @env.vendor_folder.should == "vendor" + @env.public_folder.should == "public" + end - it "should equals default config" do - @env.notification.should be_true - @env.wrapper.should == "CMD" - @env.files.should respond_to(:each) - end - - it "should equals default before and after" do - @env.files.each do |file| - file["copy"].should respond_to(:each) - file["concat"].should respond_to(:each) - file["order"]["before"].should respond_to(:each) - file["order"]["after"].should respond_to(:each) - end - end + it "should equals default config" do + @env.notification.should be_true + @env.wrapper.should == "cmd" + @env.groups.should respond_to(:each) end end