Sha256: 9b403a8a9f9c18fb20d0b5c9795d3210107b729ddc54ac56d9a379619fb36898
Contents?: true
Size: 815 Bytes
Versions: 2
Compression:
Stored size: 815 Bytes
Contents
require File.join(File.dirname(__FILE__), 'support', 'spec_helper') require 'albacore/exec' @@nunit = File.join(File.dirname(__FILE__), 'support', 'Tools', 'NUnit-v2.5', 'nunit-console-x86.exe') describe Exec, "when executing a command with parameters" do before :all do @cmd = Exec.new @cmd.log_level = :verbose @cmd.extend(SystemPatch) @cmd.extend(FailPatch) @cmd.path_to_command = @@nunit @cmd.parameters "--help" @cmd.execute end it "should run the command with the parameters" do @cmd.system_command.should include("\"#{@@nunit}\" --help") end it "should specify the parameters only once" do @cmd.system_command.scan(/--help/).length.should be(1) end it "should not fail" do $task_failed.should be_false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.1.4 | spec/exec_spec.rb |
albacore-0.1.3 | spec/exec_spec.rb |