convert Library builder specs to integration tests

This commit is contained in:
josh committed 2017-05-22 16:54:10 -04:00
1 parent 7e707e7e3b
commit 957fd8c86d
3 files changed
+13 -28

No files matched your search

-28
View File
@@ -1,28 +0,0 @@
module Rscons
module Builders
describe Library do
let(:env) {Environment.new}
subject {Library.new}
it "supports overriding AR construction variable" do
expect(subject).to receive(:standard_build).with("AR prog.a", "prog.a", ["sp-ar", "rcs", "prog.a", "prog.o"], ["prog.o"], env, :cache)
subject.run(
target: "prog.a",
sources: ["prog.o"],
cache: :cache,
env: env,
vars: {"AR" => "sp-ar"})
end
it "supports overriding ARCMD construction variable" do
expect(subject).to receive(:standard_build).with("AR prog.a", "prog.a", ["special", "AR!", "prog.o"], ["prog.o"], env, :cache)
subject.run(
target: "prog.a",
sources: ["prog.o"],
cache: :cache,
env: env,
vars: {"ARCMD" => ["special", "AR!", "${_SOURCES}"]})
end
end
end
end