Remove BuildTarget, Builder#create_build_target, and Builder#setup - close #90
This commit is contained in:
1 parent
aac32d20b0
commit
3f8b4d616f
17 files changed
+138
-212
No files matched your search
@@ -2,7 +2,7 @@ module Rscons
|
||||
describe Builder do
|
||||
describe "#run" do
|
||||
it "raises an error if called directly and not through a subclass" do
|
||||
expect{subject.run({})}.to raise_error /This method must be overridden in a subclass/
|
||||
expect{Builder.new({}).run({})}.to raise_error /This method must be overridden in a subclass/
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -4,7 +4,7 @@ module Rscons
|
||||
let(:env) {Environment.new}
|
||||
|
||||
it "should create a new builder with the given action" do
|
||||
builder = Rscons::Builders::SimpleBuilder.new { 0x1234 }
|
||||
builder = Rscons::Builders::SimpleBuilder.new({}) { 0x1234 }
|
||||
expect(builder.run(1,2,3,4,5)).to eq(0x1234)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user