From c8999a116ef71bef2cb28a783e4ba3d8e3cea6fa Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 24 Mar 2016 12:40:55 +0100 Subject: Sanitize remote html in atom feeds, API (not just UI), use cached mention relations on Status#mentions --- spec/models/status_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') 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 -- cgit