Sha256: 32efcefff547ebcbe1d91120574a15bcd3e04271c0fe74b9bcaf2ecc753d9e37

Contents?: true

Size: 290 Bytes

Versions: 8

Compression:

Stored size: 290 Bytes

Contents

class AudioDriverMock
  attr_reader :state

  # Expected implementation:
  attr_accessor :format

  def stream(&block)
    @stream = block if block_given?
    @stream
  end

  def play
    @state = :play
  end

  def pause
    @state = :pause
  end

  def stop
    @state = :stop
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hallon-0.18.2 spec/support/audio_driver_mock.rb
hallon-0.18.1 spec/support/audio_driver_mock.rb
hallon-0.18.0 spec/support/audio_driver_mock.rb
hallon-0.17.0 spec/support/audio_driver_mock.rb
hallon-0.16.0 spec/support/audio_driver_mock.rb
hallon-0.15.0 spec/support/audio_driver_mock.rb
hallon-0.14.0 spec/support/audio_driver_mock.rb
hallon-0.13.0 spec/support/audio_driver_mock.rb