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) }
|
|
|
|
|
2019-05-06 23:12:20 -04:00
|
|
|
fab!(:upload) { Fabricate(: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
|