change Builder#run base class method to new signature
This commit is contained in:
parent
7a31039e35
commit
ef4f9882cd
@ -128,7 +128,7 @@ module Rscons
|
|||||||
#
|
#
|
||||||
# @return [String,false]
|
# @return [String,false]
|
||||||
# Name of the target file on success or false on failure.
|
# Name of the target file on success or false on failure.
|
||||||
def run(target, sources, cache, env, vars)
|
def run(options)
|
||||||
raise "This method must be overridden in a subclass"
|
raise "This method must be overridden in a subclass"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ module Rscons
|
|||||||
describe Builder do
|
describe Builder do
|
||||||
describe "#run" do
|
describe "#run" do
|
||||||
it "raises an error if called directly and not through a subclass" do
|
it "raises an error if called directly and not through a subclass" do
|
||||||
expect{subject.run(:target, :sources, :cache, :env, :vars)}.to raise_error /This method must be overridden in a subclass/
|
expect{subject.run({})}.to raise_error /This method must be overridden in a subclass/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user