about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-24 12:40:55 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-24 12:43:55 +0100
commitc8999a116ef71bef2cb28a783e4ba3d8e3cea6fa (patch)
tree5de675d578d4e3b10ccbbcee12858f1c8a7c0eb0 /spec
parent7cd3de3494834abfefc405b958da9898780fcb40 (diff)
Sanitize remote html in atom feeds, API (not just UI), use cached mention
relations on Status#mentions
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