Skip to content

A platform for community discussion. Free, open, simple.

311 B
Raw Blame
# frozen_string_literal: true

RSpec.describe CategoryUploadSerializer do
  subject(:serializer) { described_class.new(upload, root: false) }

  fab!(:upload)

  it "includes the upload dimensions" do
    expect(serializer.width).to eq(upload.width)
    expect(serializer.height).to eq(upload.height)
  end
end