require 'fileutils' describe Rscons do before(:all) do FileUtils.rm_rf('build_tests_run') @owd = Dir.pwd end after(:each) do Dir.chdir(@owd) FileUtils.rm_rf('build_tests_run') end def build_testdir if File.exists?("build.rb") build_rb = File.read("build.rb") File.open("build.rb", "w") do |fh| fh.puts(<