Sha256: 3230c70d66e74ca38a32540ca5cd8d3adc617ff8bb99fb8cbe35aea24465a82f

Contents?: true

Size: 741 Bytes

Versions: 2

Compression:

Stored size: 741 Bytes

Contents

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

describe MSpecTestRunner, "when providing configuration" do
  let :mspec do
    Albacore.configure do |config|
      config.mspec.command = "test"
    end
    mspec = MSpecTestRunner.new
  end

  it "should use the configured values" do
    mspec.command.should == "test"
  end
end

describe MSpecTestRunner, "when overriding the command through the initializer" do
  let :mspec do
    Albacore.configure do |config|
      config.mspec.command = "configured"
    end
    mspec = MSpecTestRunner.new("override")
  end

  it "should use the command override" do
    mspec.command.should == "override"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-0.2.0.preview2 spec/mspec_spec.rb
albacore-0.2.0.preview1 spec/mspec_spec.rb