Sha256: 5b522d7d8847fa0bb42a59da893959459addff51301e90a15905c9f961e4ed5e
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
require "spec_helper" describe MSBuild do subject(:task) do task = MSBuild.new() task.extend(SystemPatch) task.command = "msbuild" task.solution = "solution" task.targets = [:clean, :build] task.properties = {:foo => "foo", :bar => "bar"} task.verbosity = :minimal task.logger_module = "loggermodule" task.other_switches = {:baz => "baz"} 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("msbuild") end it "should build the solution" do cmd.should include("\"solution\"") end it "should use the targets" do cmd.should include("/target:\"clean;build\"") end it "should set the properties" do cmd.should include("/property:foo=\"foo\" /property:bar=\"bar\"") end it "should set the other switches" do cmd.should include("/baz:\"baz\"") end it "should be verbose" do cmd.should include("/verbosity:minimal") end it "should hide the startup banner" do cmd.should include("/nologo") end it "should log to the module" do cmd.should include("/logger:\"loggermodule\"") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-1.0.0 | spec/msbuild_spec.rb |
albacore-1.0.0.rc.3 | spec/msbuild_spec.rb |