Sha256: 196c17c38f38867308b3452b22c23e1e9578355fa83ea366cbe08b68db9c8a2e
Contents?: true
Size: 819 Bytes
Versions: 36
Compression:
Stored size: 819 Bytes
Contents
describe 'executables\' Cmd Runner options' do # Setup a platform for tests # # Parameters:: # * Proc: Code called when the platform is setup # * Parameters:: # * *repository* (String): Platform's repository def with_test_platform_for_cmd_runner_options with_test_platform({ nodes: { 'node' => {} } }) do |repository| yield repository end end it 'displays commands instead of running them' do with_test_platform_for_cmd_runner_options do expect_actions_executor_runs([proc do expect(test_cmd_runner.dry_run).to eq true {} end]) exit_code, stdout, stderr = run 'run', '--node', 'node', '--command', 'echo Hello', '--show-commands' expect(exit_code).to eq 0 expect(stdout).to eq '' expect(stderr).to eq '' end end end
Version data entries
36 entries across 36 versions & 1 rubygems