Sha256: 27cdd65d413d8266d2e3448c888b8485f368003f1c292f9994d430f7dd5cff2b
Contents?: true
Size: 848 Bytes
Versions: 6
Compression:
Stored size: 848 Bytes
Contents
load File.dirname(__FILE__) + '/spec_helper.rb' describe 'when using libraries' do include RakeBuilderHelper before( :each ) do Rake::Task.clear end after( :each ) do Rake::Task[ 'clean' ].execute end it 'builds if libraries are found' do lambda do @project = cpp_task( :executable ) do |builder| builder.library_dependencies = [ 'gcc' ] # As we're using GCC, libgcc.a should always be present end Rake::Task[ 'build' ].invoke end.should_not raise_error end it 'fails to build if libraries are missing' do @project = cpp_task( :executable ) do |builder| builder.library_dependencies = [ 'library_that_doesnt_exist' ] end expect do Rake::Task[ 'build' ].invoke end. to raise_error( Rake::Builder::BuildFailure ) end end
Version data entries
6 entries across 6 versions & 1 rubygems