2019-04-29 20:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-07-27 22:27:38 -04:00
|
|
|
RSpec.describe CategoryUploadSerializer do
|
2023-06-21 10:00:19 -04:00
|
|
|
subject(:serializer) { described_class.new(upload, root: false) }
|
|
|
|
|
2023-11-09 17:47:59 -05:00
|
|
|
fab!(:upload)
|
2018-11-26 19:40:06 -05:00
|
|
|
|
|
|
|
it "should include width and height" do
|
2023-06-21 10:00:19 -04:00
|
|
|
expect(serializer.width).to eq(upload.width)
|
|
|
|
expect(serializer.height).to eq(upload.height)
|
2018-11-26 19:40:06 -05:00
|
|
|
end
|
|
|
|
end
|