21 lines
527 B
Ruby
21 lines
527 B
Ruby
require 'fileutils'
|
|
|
|
describe Rscons do
|
|
FileUtils.rm_rf('build_tests/test')
|
|
test_dirs = Dir['build_tests/*/']
|
|
test_dirs.each do |build_test_rel_path|
|
|
context build_test_rel_path do
|
|
before do
|
|
FileUtils.cp_r(build_test_rel_path, 'build_tests/test')
|
|
@owd = Dir.pwd
|
|
Dir.chdir('build_tests/test')
|
|
end
|
|
instance_eval(File.read(File.join(build_test_rel_path, 'spec.rb')))
|
|
after do
|
|
Dir.chdir(@owd)
|
|
FileUtils.rm_rf('build_tests/test')
|
|
end
|
|
end
|
|
end
|
|
end
|