complete spec updates for RSpec 3 using only :expect syntax

This commit is contained in:
josh committed 2014-06-12 15:52:15 -04:00
1 parent 5783ed993a
commit 31968e7e32
6 files changed
+61 -61

No files matched your search

+3 -3
View File
@@ -6,9 +6,9 @@ module Rscons
it "supports overriding DISASM_CMD construction variable" do
cache = "cache"
cache.stub(:up_to_date?) { false }
cache.stub(:mkdir_p) { }
cache.stub(:register_build) { }
allow(cache).to receive(:up_to_date?) { false }
allow(cache).to receive(:mkdir_p) { }
allow(cache).to receive(:register_build) { }
expect(env).to receive(:execute).with("Disassemble a_file.txt", ["my_disasm", "a_file.exe"], anything).and_return(true)
subject.run("a_file.txt", ["a_file.exe"], cache, env, "DISASM_CMD" => ["my_disasm", "${_SOURCES}"])
end
+5 -5
View File
@@ -6,11 +6,11 @@ module Rscons
it "supports overriding CCCMD construction variable" do
cache = "cache"
cache.stub(:up_to_date?) { false }
cache.stub(:mkdir_p) { }
cache.stub(:register_build) { }
FileUtils.stub(:rm_f) { }
File.stub(:exists?) { false }
allow(cache).to receive(:up_to_date?) { false }
allow(cache).to receive(:mkdir_p) { }
allow(cache).to receive(:register_build) { }
allow(FileUtils).to receive(:rm_f) { }
allow(File).to receive(:exists?) { false }
expect(env).to receive(:execute).with("CC mod.o", ["llc", "mod.c"]).and_return(true)
subject.run("mod.o", ["mod.c"], cache, env, "CCCMD" => ["llc", "${_SOURCES}"])
end