diff --git a/spec/dragonfly/image_magick/plugin_spec.rb b/spec/dragonfly/image_magick/plugin_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/dragonfly/image_magick/plugin_spec.rb
+++ b/spec/dragonfly/image_magick/plugin_spec.rb
@@ -124,7 +124,7 @@ describe "a configured imagemagick app" do
   describe "identify" do
     it "gives the output of the command line" do
       image.identify.should =~ /280/
-      image.identify("-format %h").should == "355\n"
+      image.identify("-format %h").chomp.should == "355"
     end
   end
modifying indentify spec to chomp the trailing /n