vote_serializer_spec.rb 352 B

1234567891011121314
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe ActivityPub::VoteSerializer do
  4. let(:serialization) { serialized_record_json(record, described_class) }
  5. let(:record) { Fabricate(:poll_vote) }
  6. describe 'type' do
  7. it 'returns correct serialized type' do
  8. expect(serialization['type']).to eq('Create')
  9. end
  10. end
  11. end