mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
0f4beab0fb
This enables cops related to RSpec `subject`. See https://github.com/discourse/rubocop-discourse/pull/32
13 lines
335 B
Ruby
13 lines
335 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe CategoryUploadSerializer do
|
|
subject(:serializer) { described_class.new(upload, root: false) }
|
|
|
|
fab!(:upload) { Fabricate(:upload) }
|
|
|
|
it "should include width and height" do
|
|
expect(serializer.width).to eq(upload.width)
|
|
expect(serializer.height).to eq(upload.height)
|
|
end
|
|
end
|