Sha256: d3c34ac671fca1d46c2721f000716fd3ec6df02e0f1a3cae7c5ff7c6dc912739
Contents?: true
Size: 562 Bytes
Versions: 2
Compression:
Stored size: 562 Bytes
Contents
require "spec_helper" describe NDepend do subject(:task) do task = NDepend.new() task.extend(SystemPatch) task.command = "ndepend" task.project_file = "projectfile" task end let(:cmd) { task.system_command } before :each do task.execute end it "should use the command" do cmd.should include("ndepend") end # Bad! How do I stub File.expand_path? Or use the albacore.rb file? it "should use the project file" do cmd.should include("\"#{File.expand_path("projectfile")}\"") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-1.0.0 | spec/ndepend_spec.rb |
albacore-1.0.0.rc.3 | spec/ndepend_spec.rb |