about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/models/status_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/status_spec.rb b/spec/models/status_spec.rb
index 13c5fa3d1..2bf2c744f 100644
--- a/spec/models/status_spec.rb
+++ b/spec/models/status_spec.rb
@@ -50,7 +50,7 @@ RSpec.describe Status, type: :model do
     end
 
     it 'returns mentioned accounts' do
-      subject.text = 'Hello @bob!'
+      subject.mentioned_accounts.create!(account: bob)
       expect(subject.mentions).to include bob
     end