Module: StepSequencer::Tests::TestCaseHelpers
- Defined in:
- lib/step_sequencer/tests.rb
Overview
Helpers made available to test cases (if they include the module)
Instance Method Summary collapse
Instance Method Details
#asset_path(name) ⇒ Object
90 91 92 |
# File 'lib/step_sequencer/tests.rb', line 90 def asset_path(name) Gem.find_files("step_sequencer/test_assets/#{name}.mp3")[0] end |
#build_player(sources) ⇒ Object
96 97 98 |
# File 'lib/step_sequencer/tests.rb', line 96 def build_player(sources) StepSequencer::SoundPlayer.new sources end |
#builder ⇒ Object
93 94 95 |
# File 'lib/step_sequencer/tests.rb', line 93 def builder StepSequencer::SoundBuilder end |