From edef466bc0a52a4e2bc56c3df29e536ee9c71b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janko=20Marohni=C4=87?= Date: Tue, 13 Mar 2018 09:58:32 +0100 Subject: [PATCH] Remove tests for #crop --- test/vips_test.rb | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/test/vips_test.rb b/test/vips_test.rb index 6076e52..c2edf8c 100644 --- a/test/vips_test.rb +++ b/test/vips_test.rb @@ -209,35 +209,6 @@ describe ImageProcessing::Vips do end end - describe "#crop" do - it "resizes the image to the given dimensions" do - result = crop(@portrait, 50, 50) - assert_dimensions [50, 50], result - end - - it "crops the right area of the images" do - result = crop(@portrait, 50, 50, 325, 425) - assert_similar fixture_image("crop.jpg"), result - end - - it "accepts a block" do - actual = crop(@portrait, 50, 50, &:invert) - expected = vips(crop(@portrait, 50, 50), &:invert) - assert_similar expected, actual - end - - it "accepts vips options" do - result = crop(@portrait, 50, 50, format: "png") - assert_type "PNG", result - assert_equal ".png", File.extname(result.path) - end - - it "doesn't modify the input file" do - crop(@portrait, 50, 50) - assert_equal fixture_image("portrait.jpg").read, @portrait.read - end - end - describe "#vips" do it "accepts any object that responds to #read" do io = StringIO.new(@portrait.read)