Skip to content

Instantly share code, notes, and snippets.

@dLobatog
Created June 13, 2012 03:04
Embed
What would you like to do?
Test stickers
@image_generator.put_campaign_sticker "public/images/stickers/campaign.png"
new_photo = @image_generator.photo.file_path.sub(/\./, "-sticker.")
expected_photo = File.join(Rails.root, 'spec', 'assets', 'test-result-campaign.png')
new_image = Magick::Image.read(new_photo)[0]
expected_image = Magick::Image.read(expected_photo)[0]
new_image.signature.should eql expected_image.signature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment