summaryrefslogtreecommitdiffhomepage
path: root/test/image_spec.rb
blob: 3eb5d86e9406a41c606c5a4042dece14aec25c5d (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