diff --git a/spec/build_tests_spec.rb b/spec/build_tests_spec.rb index 3d150e1..8ab2d4b 100644 --- a/spec/build_tests_spec.rb +++ b/spec/build_tests_spec.rb @@ -57,12 +57,11 @@ describe Rscons do def run_test(options = {}) rsconsfile = options[:rsconsfile] || "Rsconsfile" rscons_args = options[:rscons_args] || [] - command = %w[rscons -f _build_test.rb] + rscons_args + command = %W[ruby -I. -r _simplecov_setup #{@owd}/bin/rscons -f #{rsconsfile}] + rscons_args @statics[:build_test_id] ||= 0 @statics[:build_test_id] += 1 command_name = "b#{@statics[:build_test_id]}" - rsconsfile_contents = File.read(rsconsfile) - File.open("_build_test.rb", "w") do |fh| + File.open("_simplecov_setup.rb", "w") do |fh| fh.puts <