1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-25 15:46:44 +09:00

keyword mute: Add missing scope for regex escape test

This commit is contained in:
David Yip 2018-06-12 17:48:38 -05:00
parent 908a770d2b
commit 99b2bc2668
No known key found for this signature in database
GPG Key ID: 7DA0036508FCC0CC

View File

@ -90,7 +90,7 @@ RSpec.describe Glitch::KeywordMute, type: :model do
it 'escapes metacharacters in non-whole-word keywords' do
Glitch::KeywordMute.create!(account: alice, keyword: '(-', whole_word: false)
expect(matcher.matches?('bad (-)')).to be_truthy
expect(matcher.matches?('bad (-)', Unscoped)).to be_truthy
end
it 'uses case-folding rules appropriate for more than just English' do