diff options
| author | Tom Black <[email protected]> | 2019-04-02 01:49:44 -0500 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2019-04-06 21:36:59 -0500 |
| commit | 385ab540946ae27101167f9fea9eafc422fd36f7 (patch) | |
| tree | 565afff6e92fd23a5a5ba92bfd1052eaf2a08ac8 /test/sound_spec.rb | |
| parent | 7d1a4de254bd4404affd7ddcafa4ef82f3d32ded (diff) | |
| download | ruby2d-385ab540946ae27101167f9fea9eafc422fd36f7.tar.gz ruby2d-385ab540946ae27101167f9fea9eafc422fd36f7.zip | |
Bundle dependencies with the gem
Diffstat (limited to 'test/sound_spec.rb')
| -rw-r--r-- | test/sound_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/sound_spec.rb b/test/sound_spec.rb index 006e1f7..0aa44b9 100644 --- a/test/sound_spec.rb +++ b/test/sound_spec.rb @@ -8,7 +8,14 @@ RSpec.describe Ruby2D::Sound do end unless ENV['CI'] # audio cannot be opened on CI; see `music_spec.rb` - it "creates sound" do + it "creates sound in various formats" do + Sound.new('test/media/music.wav') + Sound.new('test/media/music.mp3') + Sound.new('test/media/music.ogg') + Sound.new('test/media/music.flac') + end + + it "creates sound and sets the media path" do snd = Sound.new('test/media/sound.wav') expect(snd.path).to eq('test/media/sound.wav') end |
