Replace all raise ruby keyword with fail

This commit is contained in:
Thibault Jouan
2014-06-05 12:37:42 +00:00
parent 6a396ae8c0
commit 9eed0a8ef8
3 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ module Producer
module Testing
class MockRemote < Remote
def session
raise 'no session for mock remote!'
fail 'no session for mock remote!'
end
def execute(command, output = '')
@@ -16,9 +16,9 @@ module Producer
when 'true'
output << ''
when 'false'
raise RemoteCommandExecutionError
fail RemoteCommandExecutionError
when 'type'
raise RemoteCommandExecutionError unless %w[
fail RemoteCommandExecutionError unless %w[
echo
true
false