Replace all raise ruby keyword with fail
This commit is contained in:
1 parent
6a396ae8c0
commit
9eed0a8ef8
3 files changed
+5
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user