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

RSpec.describe Ruby2D::Music do

  describe '#new' do
    it "raises exception if audio file doesn't exist" do
      expect { Music.new('bad_music.mp3') }.to raise_error(Ruby2D::Error)
    end
  end

end