add a Builder#run method which raises an error unless overridden

This commit is contained in:
josh committed 2014-10-16 16:52:26 -04:00
1 parent e654df008d
commit 7ea0721cc2
2 files changed
+23

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
module Rscons
describe Builder do
describe "#run" 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/
end
end
end
end