Support redirecting standard output using the Command builder - close #28

This commit is contained in:
josh committed 2017-05-29 12:50:34 -04:00
1 parent 8cbb9fa30e
commit 43df46018c
4 files changed
+34 -5

No files matched your search

+12
View File
@@ -748,6 +748,18 @@ EOF
expect(result.stderr).to eq ""
expect(result.stdout).to eq ""
end
it "allows redirecting standard output to a file" do
test_dir("simple")
result = run_test(rsconsfile: "command_redirect.rb")
expect(result.stderr).to eq ""
expect(lines(result.stdout)).to eq [
"CC simple.o",
"My Disassemble simple.txt",
]
expect(File.read("simple.txt")).to match /Disassembly of section .text:/
end
end
context "Directory builder" do