Files
openfoodnetwork/spec/serializers/spree/image_serializer_spec.rb
2013-12-20 11:49:08 +11:00

10 lines
277 B
Ruby

require 'spec_helper'
describe Spree::ImageSerializer do
it "should give us the small url" do
image = Spree::Image.new(attachment: double(:attachment))
image.attachment.should_receive(:url).with(:small, false)
Spree::ImageSerializer.new(image).to_json
end
end