spec/configurators/build_configurator_spec.rb in rconf-0.7.10 vs spec/configurators/build_configurator_spec.rb in rconf-0.7.11

- old
+ new

@@ -16,15 +16,16 @@ before(:each) do @configurator = create_configurator('build { path "../source" }') end it 'should build' do + should_execute('mkdir', '-p', '../source', {:abort_on_failure=>"Failed to create ../source"}).once.ordered flexmock(Dir).should_receive(:chdir).with('../source', Proc).once.and_yield should_execute('./configure', {:abort_on_failure=>"Failed to run ./configure"}).once.ordered should_execute('make', {:abort_on_failure=>"Failed to run make"}).once.ordered should_sudo('echo').once.ordered should_sudo('make', 'install', {:abort_on_failure=>"Failed to run make install"}).once.ordered - @configurator.run + @configurator.run_linux end it 'should honor only_if' do @configurator.instance_eval { only_if('false') } should_execute.and_return { raise "Command should not execute" }