mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 00:38:27 +00:00
Merge commit 'c645490d553124d800d30488595f7d2d9d61584d' into glitch-soc/merge-upstream
Conflicts: - `Gemfile.lock`: Changes were already cherry-picked and updated further in glitch-soc. Kept glitch-soc's version. - `README.md`: Upstream updated its README, we have a completely different one. Kept glitch-soc's README. - `app/models/account.rb`: Not a real conflict, upstream updated some lines textually adjacent to glitch-soc-specific lines. Ported upstream's changes.
This commit is contained in:
@@ -1016,12 +1016,15 @@ RSpec.describe ActivityPub::Activity::Create do
|
||||
it 'creates an encrypted message' do
|
||||
encrypted_message = target_device.encrypted_messages.reload.first
|
||||
|
||||
expect(encrypted_message).to_not be_nil
|
||||
expect(encrypted_message.from_device_id).to eq '1234'
|
||||
expect(encrypted_message.from_account).to eq sender
|
||||
expect(encrypted_message.type).to eq 1
|
||||
expect(encrypted_message.body).to eq 'Foo'
|
||||
expect(encrypted_message.digest).to eq 'Foo123'
|
||||
expect(encrypted_message)
|
||||
.to be_present
|
||||
.and have_attributes(
|
||||
from_device_id: eq('1234'),
|
||||
from_account: eq(sender),
|
||||
type: eq(1),
|
||||
body: eq('Foo'),
|
||||
digest: eq('Foo123')
|
||||
)
|
||||
end
|
||||
|
||||
it 'creates a message franking' do
|
||||
|
||||
Reference in New Issue
Block a user