Sha256: d36f844be538335a291b1b71bbc27ee2361ff082877f748b514be711ab1b6a7a

Contents?: true

Size: 197 Bytes

Versions: 5

Compression:

Stored size: 197 Bytes

Contents

class PlaybackExecutor
  def initialize
    @responses = []
  end

  def invoke(command)
    @responses.pop
  end

  def add_response(output, status)
    @responses.push [output, status]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
big_brother-0.3.1 spec/support/playback_executor.rb
big_brother-0.3.0 spec/support/playback_executor.rb
big_brother-0.2.1 spec/support/playback_executor.rb
big_brother-0.2.0 spec/support/playback_executor.rb
big_brother-0.1.0 spec/support/playback_executor.rb