Sha256: 1f79ce3562afc33a6c1db5bb5cbb4e9b8aa895fda01aa9c53c5398c6b05e669e
Contents?: true
Size: 1 KB
Versions: 3
Compression:
Stored size: 1 KB
Contents
module Rscons describe Environment do describe '.clone' do it 'should create unique copies of each construction variable' do env = Environment.new env["CPPPATH"] << "path1" env2 = env.clone env2["CPPPATH"] << "path2" env["CPPPATH"].should == ["path1"] env2["CPPPATH"].should == ["path1", "path2"] end end describe '.parse_makefile_deps' do it 'handles dependencies on one line' do File.should_receive(:read).with('makefile').and_return(<<EOS) module.o: source.cc EOS env = Environment.new env.parse_makefile_deps('makefile', 'module.o').should == ['source.cc'] end it 'handles dependencies split across many lines' do File.should_receive(:read).with('makefile').and_return(<<EOS) module.o: module.c \\ module.h \\ other.h EOS env = Environment.new env.parse_makefile_deps('makefile', 'module.o').should == [ 'module.c', 'module.h', 'other.h'] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rscons-0.0.14 | spec/rscons/environment_spec.rb |
rscons-0.0.13 | spec/rscons/environment_spec.rb |
rscons-0.0.12 | spec/rscons/environment_spec.rb |