Write output from `sh' task action directly:
* Accept output as argument in Remote#execute; * Modify ShellCommand so that env output is directly handled.
This commit is contained in:
@@ -15,7 +15,9 @@ module TestEnvHelpers
|
||||
|
||||
def expect_execution(command)
|
||||
opts = { expected_from: caller.first }
|
||||
RSpec::Mocks.expect_message(env.remote, :execute, opts).with(command)
|
||||
RSpec::Mocks
|
||||
.expect_message(env.remote, :execute, opts)
|
||||
.with(command, env.output)
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user