discourse/spec/serializers/category_upload_serializer_...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
323 B
Ruby
Raw Normal View History

# frozen_string_literal: true
RSpec.describe CategoryUploadSerializer do
fab!(: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