Skip to content

Instantly share code, notes, and snippets.

@y-yagi
Created December 6, 2014 05:55
Show Gist options
  • Save y-yagi/b0504a365625295d6d97 to your computer and use it in GitHub Desktop.
Save y-yagi/b0504a365625295d6d97 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment