summaryrefslogtreecommitdiffhomepage
path: root/test/sound_spec.rb
diff options
context:
space:
mode:
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