diff options
| author | Tom Black <[email protected]> | 2019-01-11 01:04:23 -0800 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2019-01-11 01:32:31 -0800 |
| commit | 7d1a4de254bd4404affd7ddcafa4ef82f3d32ded (patch) | |
| tree | d4fff4cb87974ade36f1bf2eb2021b12dffd7c1f /test/music_spec.rb | |
| parent | e6a6abc22739eda13905c29c20b0fa3f16e0229f (diff) | |
| download | ruby2d-7d1a4de254bd4404affd7ddcafa4ef82f3d32ded.tar.gz ruby2d-7d1a4de254bd4404affd7ddcafa4ef82f3d32ded.zip | |
Update CI
Diffstat (limited to 'test/music_spec.rb')
| -rw-r--r-- | test/music_spec.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/music_spec.rb b/test/music_spec.rb index c384c94..37fdc65 100644 --- a/test/music_spec.rb +++ b/test/music_spec.rb @@ -2,15 +2,18 @@ require 'ruby2d' RSpec.describe Ruby2D::Music do - # On AppVeyor: - # Error: (Mix_OpenAudio) WASAPI can't find requested audio endpoint: Element not found. + # Audio cannot be opened on CI + # On macOS: + # Mix_GetError: CoreAudio error (AudioDeviceGetProperty (kAudioDevicePropertyDeviceIsAlive)): 560947818 + # On Windows: + # Mix_GetError: WASAPI can't find requested audio endpoint: Element not found. describe "#new" do it "raises exception if audio file doesn't exist" do expect { Music.new('no_music_here.mp3') }.to raise_error(Ruby2D::Error) end - unless ENV['APPVEYOR'] + unless ENV['CI'] it "creates music with options" do mus = Music.new('test/media/music.mp3', loop: true) expect(mus.path).to eq('test/media/music.mp3') @@ -20,7 +23,7 @@ RSpec.describe Ruby2D::Music do end describe "attributes" do - unless ENV['APPVEYOR'] + unless ENV['CI'] it "can be set and read" do mus = Music.new('test/media/music.mp3') expect(mus.loop).to be false @@ -31,7 +34,7 @@ RSpec.describe Ruby2D::Music do end describe "#volume" do - unless ENV['APPVEYOR'] + unless ENV['CI'] it "sets the volume on music instances" do mus = Music.new('test/media/music.mp3') expect(mus.volume).to eq(100) |
