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

RSpec.describe Ruby2D::Image do
  
  describe '#new' do
    it "raises exception if image file doesn't exist" do
      expect { Image.new(0, 0, 'bad_image.png') }.to raise_error(Ruby2D::Error)
    end
  end
  
end