Permalink
Browse files

Remove constant warning from Thumbnail test

  • Loading branch information...
1 parent 201702b commit 7045e297478f00704ddbd68ca9c1e6523af20ded @sikachu sikachu committed Feb 17, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/thumbnail_test.rb
View
@@ -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)

0 comments on commit 7045e29

Please sign in to comment.