Sha256: 5356146163c556fad1c7b03664b16665c0f0899a706d7aae1c7abe1e3c02f3a1

Contents?: true

Size: 840 Bytes

Versions: 2

Compression:

Stored size: 840 Bytes

Contents

require "spec_helper"

describe NAnt do
  subject(:task) do
    task = NAnt.new()
    task.extend(SystemPatch)
    task.command = "nant"
    task.targets = [:clean, :build]
    task.build_file = "buildfile"
    task.properties = {:foo => "foo", :bar => "bar"}
    task.no_logo
    task
  end

  let(:cmd) { task.system_command }

  before :each do
    task.execute
  end

  it "should use the command" do
    cmd.should include("nant") 
  end

  it "should run the targets" do
    cmd.should include("clean build")
  end

  it "should use the build file" do
    cmd.should include("-buildfile:\"buildfile\"")
  end

  it "should hide the startup banner" do
    cmd.should include("-nologo")
  end

  it "should set the properties" do
    cmd.should include("-D:foo=\"foo\" -D:bar=\"bar\"")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0 spec/nant_spec.rb
albacore-1.0.0.rc.3 spec/nant_spec.rb