public
Description: Paperclip File Management Plugin
Homepage: http://www.thoughtbot.com/projects/paperclip
Clone URL: git://github.com/thoughtbot/paperclip.git
Fixed the ENOENT test and a dumb typo.
jyurek (author)
Wed May 07 10:40:53 -0700 2008
commit  7dd35f582260658ef44464142d3887a7f649ada0
tree    50b583804ffd966869fc6ba6ef78212a8bbb511c
parent  c40d947e98fbb11c322a4db875ed4accd16c3947
...
18
19
20
21
 
22
23
24
...
18
19
20
 
21
22
23
24
0
@@ -18,7 +18,7 @@ module Paperclip
0
     def self.from_file file
0
       file = file.path if file.respond_to? "path"
0
       parse(`#{Paperclip.path_for_command('identify')} "#{file}"`) ||
0
- raise NotIdentifiedByImageMagickError, "#{file} is not recognized by the 'identify' command."
0
+ raise(NotIdentifiedByImageMagickError.new("#{file} is not recognized by the 'identify' command."))
0
     end
0
 
0
     # Parses a "WxH" formatted string, where W is the width and H is the height.
...
82
83
84
85
 
86
87
88
...
82
83
84
 
85
86
87
88
0
@@ -82,7 +82,7 @@ class GeometryTest < Test::Unit::TestCase
0
 
0
     should "not generate from a bad file" do
0
       file = "/home/This File Does Not Exist.omg"
0
- assert_raise(Errno::ENOENT){ @geo = Paperclip::Geometry.from_file(file) }
0
+ assert_raise(Paperclip::NotIdentifiedByImageMagick){ @geo = Paperclip::Geometry.from_file(file) }
0
     end
0
 
0
     [['vertical', 900, 1440, true, false, false, 1440, 900, 0.625],

Comments

    No one has commented yet.