Sha256: a47fa635dc48e74943fe61c3aca28af74e7dd0375b415bac599338b49d51e21f
Contents?: true
Size: 816 Bytes
Versions: 1
Compression:
Stored size: 816 Bytes
Contents
require File.join(File.dirname(__FILE__), 'support', 'spec_helper') require 'albacore/exec' describe Exec, "when executing a command with parameters" do before :all do @nunit = File.join(File.dirname(__FILE__), 'support', 'Tools', 'NUnit-v2.5', 'nunit-console-x86.exe') @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.1.5 | spec/exec_spec.rb |