mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-18 15:11:12 +01:00
19 lines
437 B
Ruby
19 lines
437 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'rails_helper'
|
||
|
|
||
|
RSpec.describe REST::AnnualReportEventSerializer do
|
||
|
subject { serialized_record_json(record, described_class) }
|
||
|
|
||
|
describe 'serializing an object' do
|
||
|
let(:record) { Fabricate.build :generated_annual_report, year: 2024 }
|
||
|
|
||
|
it 'returns expected attributes' do
|
||
|
expect(subject.deep_symbolize_keys)
|
||
|
.to include(
|
||
|
year: '2024'
|
||
|
)
|
||
|
end
|
||
|
end
|
||
|
end
|