public
Rubygem
Description: A lightweight and opinionated but hackable library for attaching images to ActiveRecord models.
Homepage:
Clone URL: git://github.com/norman/has_image.git
Fixed public path test.
norman (author)
Mon Aug 18 08:36:03 -0700 2008
commit  2dfa7ddbb73b9b34bb3172b640427cd1f929fd14
tree    fced65bf772c9bd064918f42d83d2763ed56c44e
parent  51e75df3898c12e79e748ed11ce30cbafd113a97
...
35
36
37
38
 
39
40
41
...
35
36
37
 
38
39
40
41
0
@@ -35,7 +35,7 @@ class StorageTest < Test::Unit::TestCase
0
   end
0
   
0
   def test_public_path_for
0
-    @storage = HasImage::Storage.new(default_options)
0
+    @storage = HasImage::Storage.new(default_options.merge(:base_path => '/public'))
0
     pic = stub(:has_image_file => "mypic", :id => 1)
0
     assert_equal "/tests/0000/0001/mypic_square.jpg", @storage.public_path_for(pic, :square)
0
   end

Comments