spec/macros4cuke/application_spec.rb in macros4cuke-0.5.16 vs spec/macros4cuke/application_spec.rb in macros4cuke-0.5.17

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + # File: macro-collection_spec.rb require_relative '../spec_helper' require_relative '../../lib/macros4cuke/exceptions' @@ -18,19 +20,19 @@ Dir.chdir(@current_wkdir) end def hijack_stdout() @orig_stdout = $stdout - $stdout = StringIO.new('', 'w') + $stdout = StringIO.new(+'', 'w') end def restore_stdout() $stdout = @orig_stdout end def hijack_stderr() @orig_stderr = $stderr - $stderr = StringIO.new('', 'w') + $stderr = StringIO.new(+'', 'w') end def restore_stderr() $stderr = @orig_stderr end