Add FileUtils class methods to script DSL - close #144

This commit is contained in:
josh committed 2022-01-17 16:41:36 -05:00
1 parent 034dbcd9a6
commit c1dcfa297f
4 files changed
+79

No files matched your search

+12
View File
@@ -2844,4 +2844,16 @@ EOF
end
end
context "FileUtils methods" do
it "defines FileUtils methods to be available in the build script" do
test_dir "typical"
result = run_rscons(rsconscript: "fileutils_methods.rb")
expect(result.stderr).to eq ""
expect(result.status).to eq 0
expect(Dir.exist?("foobar")).to be_truthy
expect(Dir.exist?("foo")).to be_falsey
expect(File.exist?("foobar/baz/b.txt")).to be_truthy
end
end
end