summaryrefslogtreecommitdiffhomepage
path: root/test/sound_spec.rb
diff options
context:
space:
mode:
authorTom Black <[email protected]>2019-01-10 21:54:08 -0800
committerTom Black <[email protected]>2019-01-10 21:57:24 -0800
commit9c6c062b197b7ce4a1976e2f38289cea3949fc8b (patch)
tree23ae6398640176d87ca3424404fdfe41c1148bbd /test/sound_spec.rb
parent6a58faf836542089eb104f985aee04196207c648 (diff)
downloadruby2d-9c6c062b197b7ce4a1976e2f38289cea3949fc8b.tar.gz
ruby2d-9c6c062b197b7ce4a1976e2f38289cea3949fc8b.zip
WASAPI can't be opened on AppVeyor (Windows)
Diffstat (limited to 'test/sound_spec.rb')
-rw-r--r--test/sound_spec.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/sound_spec.rb b/test/sound_spec.rb
index f181b61..e5f0dc6 100644
--- a/test/sound_spec.rb
+++ b/test/sound_spec.rb
@@ -4,12 +4,14 @@ RSpec.describe Ruby2D::Sound do
describe "#new" do
it "raises exception if audio file doesn't exist" do
- expect { Sound.new("bad_sound.wav") }.to raise_error(Ruby2D::Error)
+ expect { Sound.new("no_sound_here.wav") }.to raise_error(Ruby2D::Error)
end
- it "creates sound" do
- snd = Sound.new('test/media/music.mp3')
- expect(snd.path).to eq('test/media/music.mp3')
+ unless ENV['APPVEYOR']
+ it "creates sound" do
+ snd = Sound.new('test/media/sound.wav')
+ expect(snd.path).to eq('test/media/sound.wav')
+ end
end
end