mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-10 03:30:22 +00:00
10 lines
277 B
Ruby
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
|