mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 13:09:33 -06:00
14 lines
309 B
Ruby
14 lines
309 B
Ruby
|
require 'rails_helper'
|
||
|
|
||
|
describe CategoryUploadSerializer do
|
||
|
|
||
|
let(:upload) { Fabricate(:upload) }
|
||
|
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
|