about summary refs log tree commit diff
path: root/spec/models
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-06-12 17:48:38 -0500
committerDavid Yip <yipdw@member.fsf.org>2018-06-12 17:48:38 -0500
commit99b2bc2668e79bacd7f8696315206872086ebf3a (patch)
tree555293ea1c9f14506fac63501f993453de3a8a8a /spec/models
parent908a770d2b344eba9a519de9087997e97d1b626e (diff)
keyword mute: Add missing scope for regex escape test
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/glitch/keyword_mute_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/glitch/keyword_mute_spec.rb b/spec/models/glitch/keyword_mute_spec.rb
index 58c9d89df..12c354738 100644
--- a/spec/models/glitch/keyword_mute_spec.rb
+++ b/spec/models/glitch/keyword_mute_spec.rb
@@ -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