Commit 2c2a2e26 by jyurek

Removed dependency on my own directory structure.

git-svn-id: https://svn.thoughtbot.com/plugins/paperclip/trunk@423 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
parent 4340b17e
......@@ -66,7 +66,7 @@ class GeometryTest < Test::Unit::TestCase
end
should "be generated from a file" do
file = Dir.glob("/Users/jyurek/Pictures/*.jpg").first
file = File.join(File.dirname(__FILE__), "fixtures", "5k.png")
file = File.new(file)
assert_nothing_raised{ @geo = Paperclip::Geometry.from_file(file) }
assert @geo.height > 0
......@@ -74,7 +74,7 @@ class GeometryTest < Test::Unit::TestCase
end
should "be generated from a file path" do
file = Dir.glob("/Users/jyurek/Pictures/*.jpg").first
file = File.join(File.dirname(__FILE__), "fixtures", "5k.png")
assert_nothing_raised{ @geo = Paperclip::Geometry.from_file(file) }
assert @geo.height > 0
assert @geo.width > 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment