kotp
12/6/2014 - 5:55 AM

minitest-sound test script

minitest-sound test script

require 'minitest/autorun'
require 'minitest/sound'

Minitest::Sound.success = '/home/yaginuma/Dropbox/tmp/music/other/sey.mp3'
Minitest::Sound.failure = '/home/yaginuma/Dropbox/tmp/music/other/mdai.mp3'
Minitest::Sound.during_test = '/home/yaginuma/Dropbox/tmp/music/other/rs1_25_beatthemup.mp3'

class A
  def b
    sleep 5
    'c'
  end
end

class TestA < Minitest::Test
  def setup
    @a = A.new
  end

  def test_b
    assert_equal "b", @a.b
  end
end