Sha256: dc4b78c3d9324f7bb112d060b8a6383ba020afc48c4106f12abe66cae5dd6c04

Contents?: true

Size: 710 Bytes

Versions: 2

Compression:

Stored size: 710 Bytes

Contents

require "spec_helper"

describe NUnit do
  subject(:task) do
    task = NUnit.new()
    task.extend(SystemPatch)
    task.command = "nunit"
    task.assemblies = ["a.dll", "b.dll"]
    task.results_path = "results.xml"
    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("nunit")
  end

  it "should test the assemblies" do
    cmd.should include("\"a.dll\" \"b.dll\"")
  end

  it "should write to this output file" do
    cmd.should include("/xml=\"results.xml\"")
  end

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

Version data entries

2 entries across 2 versions & 1 rubygems

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