summaryrefslogtreecommitdiffhomepage
path: root/test/sound_spec.rb
blob: 72141a7e6da25e818da75b5298a35e1b0bd96cc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
require 'ruby2d'

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)
    end
  end

end