add rspec test for overridding construction variables for an individual builer

This commit is contained in:
josh committed 2013-09-12 23:05:04 -04:00
1 parent 837dff9374
commit e04e67698a
4 files changed
+25

No files matched your search

+10
View File
@@ -143,4 +143,14 @@ describe Rscons do
`./simple`.should == "This is a simple C++ program\n"
end
it 'allows overriding construction variables for individual builder calls' do
lines = test_dir('two_sources')
lines.should == [
'gcc -c -o one.o -MMD -MF one.mf -DONE one.c',
'gcc -c -o two.o -MMD -MF two.mf two.c',
'gcc -o two_sources one.o two.o',
]
File.exists?('two_sources').should be_true
`./two_sources`.should == "This is a C program with two sources.\n"
end
end