Browse Source

keyword mute: Add missing scope for regex escape test

closed-social-glitch-2
David Yip 6 years ago
parent
commit
99b2bc2668
No known key found for this signature in database GPG Key ID: 7DA0036508FCC0CC
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      spec/models/glitch/keyword_mute_spec.rb

+ 1
- 1
spec/models/glitch/keyword_mute_spec.rb 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

Loading…
Cancel
Save