spec/build_tests_spec.rb in rscons-1.4.0 vs spec/build_tests_spec.rb in rscons-1.4.1

- old
+ new

@@ -482,6 +482,20 @@ env.Program("simple", "simplepp.cc") end File.read("simplepp.cc").should =~ /# \d+ "simple.cc"/ `./simple`.should == "This is a simple C++ program\n" end + + it "supports invoking builders with no sources and a build_root defined" do + class TestBuilder < Rscons::Builder + def run(target, sources, cache, env, vars) + target + end + end + test_dir("simple") + Rscons::Environment.new do |env| + env.build_root = "build" + env.add_builder(TestBuilder.new) + env.TestBuilder("file") + end + end end