Sha256: e8481a1b6f20835c9cb94426ac66ef332e2925dfb0c71e153820000f9f0abe1a

Contents?: true

Size: 856 Bytes

Versions: 5

Compression:

Stored size: 856 Bytes

Contents

require "spec_helper"

describe Environment do
  before(:each) do
    @env = Environment.new(root.join "config.yml")
  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 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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
linner-0.2.0 spec/linner/environment_spec.rb
linner-0.1.5 spec/linner/environment_spec.rb
linner-0.1.4 spec/linner/environment_spec.rb
linner-0.1.3 spec/linner/environment_spec.rb
linner-0.1.2 spec/linner/environment_spec.rb