Sha256: 40f51fd87a74ca3294b1b29f0d6a229e65df551fa6cf2744c604d191c76fcae7
Contents?: true
Size: 1.46 KB
Versions: 4
Compression:
Stored size: 1.46 KB
Contents
require 'spec_helper' require 'albacore/nugetinstall' describe NuGetInstall do before :each do @nugetinstall = NuGetInstall.new @strio = StringIO.new @nugetinstall.log_device = @strio @nugetinstall.log_level = :diagnostic end context "when no path to NuGet is specified" do it "assumes NuGet is in the path" do @nugetinstall.command.should == "NuGet.exe" end end it "generates the correct command-line parameters" do @nugetinstall.package = "Hircine" @nugetinstall.sources = "source1", "source2" @nugetinstall.version = "0.1.1-pre" @nugetinstall.no_cache = false @nugetinstall.prerelease = true @nugetinstall.exclude_version = true @nugetinstall.output_directory = "customdir" params = @nugetinstall.generate_params params.should include("install") params.should include(@nugetinstall.package) params.should include("-Version 0.1.1-pre") params.should include("-Source \"source1;source2\"") params.should include("-OutputDirectory customdir") params.should include("-ExcludeVersion") params.should include("-Prerelease") params.should_not include("-NoCache") @nugetinstall.no_cache = true params = @nugetinstall.generate_params params.should include("-NoCache") end it "fails if no package is specified" do @nugetinstall.extend(FailPatch) @nugetinstall.generate_params @strio.string.should include('A NuGet package must be specified.') end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.3.6 | spec/nugetinstall_spec.rb |
albacore-1.0.0.rc.2 | spec/nugetinstall_spec.rb |
albacore-1.0.0.rc.1 | spec/nugetinstall_spec.rb |
albacore-0.3.5 | spec/nugetinstall_spec.rb |