change Builder#run base class method to new signature

This commit is contained in:
Josh Holtrop 2017-05-12 21:08:14 -04:00
parent 7a31039e35
commit ef4f9882cd
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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