Rspec 3.0 support

This commit is contained in:
erwanlr
2014-06-02 22:06:49 +02:00
parent c12b1d0670
commit c8c126d444
55 changed files with 338 additions and 336 deletions

View File

@@ -64,5 +64,5 @@ end
# :` for `` or %x
# :system for system()
def stub_system_command(object, command, return_value, system_method = :`)
object.should_receive(system_method).with(command).and_return(return_value)
expect(object).to receive(system_method).with(command).and_return(return_value)
end