diff options
| author | Tom Black <[email protected]> | 2019-04-02 01:49:44 -0500 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2019-04-06 21:36:59 -0500 |
| commit | 385ab540946ae27101167f9fea9eafc422fd36f7 (patch) | |
| tree | 565afff6e92fd23a5a5ba92bfd1052eaf2a08ac8 /test/image_spec.rb | |
| parent | 7d1a4de254bd4404affd7ddcafa4ef82f3d32ded (diff) | |
| download | ruby2d-385ab540946ae27101167f9fea9eafc422fd36f7.tar.gz ruby2d-385ab540946ae27101167f9fea9eafc422fd36f7.zip | |
Bundle dependencies with the gem
Diffstat (limited to 'test/image_spec.rb')
| -rw-r--r-- | test/image_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/image_spec.rb b/test/image_spec.rb index 3abfd04..2654de5 100644 --- a/test/image_spec.rb +++ b/test/image_spec.rb @@ -3,6 +3,12 @@ require 'ruby2d' RSpec.describe Ruby2D::Image do describe "#new" do + it "creates images in various formats" do + Image.new('test/media/image.bmp') + Image.new('test/media/image.jpg') + Image.new('test/media/image.png') + end + it "raises exception if image file doesn't exist" do expect { Image.new('bad_image.png') }.to raise_error(Ruby2D::Error) end |
