lib/retest/command.rb in retest-1.6.0 vs lib/retest/command.rb in retest-1.6.1

- old
+ new

@@ -17,14 +17,14 @@ def_delegator :setup, :type def_delegators :options, :params, :full_suite?, :auto? attr_accessor :options, :setup - def initialize(options: Options.new, setup: Setup.new, output_stream: STDOUT) + def initialize(options: Options.new, setup: Setup.new, stdout: $stdout) @options = options @setup = setup - @output_stream = output_stream + @stdout = stdout end def command return default_command if auto? options_command || default_command @@ -50,10 +50,10 @@ else ruby_command end end def default_command - @output_stream.puts "Setup identified: [#{type.upcase}]. Using command: '#{setup_command}'" + @stdout.puts "Setup identified: [#{type.upcase}]. Using command: '#{setup_command}'" setup_command end private \ No newline at end of file