Sha256: aba5d56b7412ffd5569ed92d2eb1283194fdd1dd728c9d9c750041e48d271df9

Contents?: true

Size: 702 Bytes

Versions: 10

Compression:

Stored size: 702 Bytes

Contents

require 'spec_helper'
require 'albacore/albacoretask'
require 'albacore/config/config'

class ConfigTest
  include Albacore::Task
end

module ConfigModuleTest
  include Albacore::Configuration

  def mixin_worked
    true
  end
end

describe "when configuring log level to verbose" do
  let :test do
    Albacore.configure do |config|
      config.log_level = :verbose
    end
    test = ConfigTest.new
  end

  it "should set the log level for any model" do
    test.log_level.should == :verbose
  end
end

describe "when including Albacore::Configuration in a module" do
  it "should mix the module into the Albacore.configuration" do
    Albacore.configuration.mixin_worked.should be_true
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
albacore-0.3.6 spec/config_spec.rb
albacore-1.0.0.rc.2 spec/config_spec.rb
albacore-1.0.0.rc.1 spec/config_spec.rb
albacore-0.3.5 spec/config_spec.rb
albacore-0.3.4 spec/config_spec.rb
albacore-0.3.3 spec/config_spec.rb
albacore-0.3.2 spec/config_spec.rb
albacore-0.3.1 spec/config_spec.rb
albacore-0.3.0 spec/config_spec.rb
albacore-0.2.6 spec/config_spec.rb