spec/stub_commands_spec.rb in capistrano-spec-0.3.1 vs spec/stub_commands_spec.rb in capistrano-spec-0.3.2
- old
+ new
@@ -51,11 +51,11 @@
@configuration.stub_command 'pwd'
expect { @configuration.no_block }.to_not raise_error(NoMethodError)
end
it 'should allow to stub command processing' do
- @configuration.stub_command 'pwd', with: proc { |cmd| cmd }
+ @configuration.stub_command 'pwd', :with => proc { |cmd| cmd }
@configuration.remote_pwd.should == 'pwd'
end
it 'should allow to stub command processing (2)' do
testvar = false
@@ -63,14 +63,14 @@
@configuration.no_block
testvar.should be_true
end
it 'should allow to stub command processing with error' do
- @configuration.stub_command 'pwd', raise: ::Capistrano::CommandError
+ @configuration.stub_command 'pwd', :raise => ::Capistrano::CommandError
expect { @configuration.no_block }.to raise_error(::Capistrano::CommandError)
end
it 'should allow to stub command processing with CommandError' do
- @configuration.stub_command 'pwd', fail: true
+ @configuration.stub_command 'pwd', :fail => true
expect { @configuration.no_block }.to raise_error(::Capistrano::CommandError)
end
end