This gem provides a set of RSpec matchers to allow relative comparisons of images.
e.g. User.image.should look_like(otherimage)
The gem has only been tested with Rails 3.0 & 3.1 with the asset pipeline and RSpec 2; it has also only been tested with ImageMagick V6.x.
Include the gem in your Gemfile:
include the matchers in your spec_helper.rb:
Allows you to test that an image is within a 1% of the expected image, e.g.:
Test if a page contains an image that is like the stated image, e.g.: