Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove constant warning from Thumbnail test

  • Loading branch information...
commit 7045e297478f00704ddbd68ca9c1e6523af20ded 1 parent 201702b
@sikachu sikachu authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/thumbnail_test.rb
View
9 test/thumbnail_test.rb
@@ -226,11 +226,16 @@ class ThumbnailTest < Test::Unit::TestCase
end
context "passing a custom file geometry parser" do
+ teardown do
+ self.class.send(:remove_const, :GeoParser)
+ end
+
should "produce the appropriate transformation_command" do
GeoParser = Class.new do
def self.from_file(file)
new
end
+
def transformation_to(target, should_crop)
["SCALE", "CROP"]
end
@@ -252,6 +257,10 @@ def transformation_to(target, should_crop)
end
context "passing a custom geometry string parser" do
+ teardown do
+ self.class.send(:remove_const, :GeoParser)
+ end
+
should "produce the appropriate transformation_command" do
GeoParser = Class.new do
def self.parse(s)
Please sign in to comment.
Something went wrong with that request. Please try again.