2019-04-29 20:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-26 19:40:06 -05:00
|
|
|
describe CategoryUploadSerializer do
|
|
|
|
|
2019-05-06 23:12:20 -04:00
|
|
|
fab!(:upload) { Fabricate(:upload) }
|
2018-11-26 19:40:06 -05:00
|
|
|
let(:subject) { described_class.new(upload, root: false) }
|
|
|
|
|
|
|
|
it 'should include width and height' do
|
|
|
|
expect(subject.width).to eq(upload.width)
|
|
|
|
expect(subject.height).to eq(upload.height)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|