Sha256: 051b4689361e0cd6f1b0f4ed0f39252135102c42ae95c3be499cd848d7f1ade2

Contents?: true

Size: 780 Bytes

Versions: 1

Compression:

Stored size: 780 Bytes

Contents

require File.join(File.dirname(__FILE__), 'support', 'spec_helper')
require 'albacore/albacoretask'
require 'albacore/config/config'

class ConfigTest
  include AlbacoreTask
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

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.2.0.preview2 spec/config_spec.rb