Sha256: 3033dcc572388d09c90e9ead8ce454b5a9eefdea748a8158333193e9b0450a52

Contents?: true

Size: 520 Bytes

Versions: 15

Compression:

Stored size: 520 Bytes

Contents

# encoding: utf-8

module Aruba
  module Api
    # output() blocks for stderr and stdout it seems
    def assert_partial_output_interactive(expected)
      unescape(_read_interactive).include?(unescape(expected)) ? true : false
    end

    def _read_interactive
      @interactive.read_stdout(@aruba_keep_ansi)
    end
  end

  class Process
    def read_stdout(keep_ansi)
      wait_for_io do
        @process.io.stdout.flush
        content = filter_ansi(open(@out.path).read, keep_ansi)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
adhearsion-2.3.1 features/support/aruba_helper.rb
adhearsion-2.3.0 features/support/aruba_helper.rb
adhearsion-2.2.1 features/support/aruba_helper.rb
adhearsion-2.2.0 features/support/aruba_helper.rb
adhearsion-2.1.3 features/support/aruba_helper.rb
adhearsion-2.1.2 features/support/aruba_helper.rb
adhearsion-2.1.1 features/support/aruba_helper.rb
adhearsion-2.1.0 features/support/aruba_helper.rb
adhearsion-2.0.1 features/support/aruba_helper.rb
adhearsion-2.0.0 features/support/aruba_helper.rb
adhearsion-2.0.0.rc5 features/support/aruba_helper.rb
adhearsion-2.0.0.rc4 features/support/aruba_helper.rb
adhearsion-2.0.0.rc3 features/support/aruba_helper.rb
adhearsion-2.0.0.rc2 features/support/aruba_helper.rb
adhearsion-2.0.0.rc1 features/support/aruba_helper.rb