1
0

encrypted_message_serializer_spec.rb 386 B

1234567891011121314
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. describe REST::EncryptedMessageSerializer do
  4. let(:serialization) { serialized_record_json(record, described_class) }
  5. let(:record) { Fabricate(:encrypted_message) }
  6. describe 'account' do
  7. it 'returns the associated account' do
  8. expect(serialization['account_id']).to eq(record.from_account.id.to_s)
  9. end
  10. end
  11. end