blob: 7d4f96d5b4769c4866ac4e87dc9f528e73d954d4 (
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("bad_image.png") }.to raise_error(Ruby2D::Error)
end
end
end
|