Browse Source

Fix example description.

This example actually checks matches at the end of a string.
closed-social-glitch-2
David Yip 7 years ago
parent
commit
641f90e73a
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

@ -48,7 +48,7 @@ RSpec.describe Glitch::KeywordMute, type: :model do
expect(matcher =~ 'Take this').to be_truthy
end
it 'matches keywords at the beginning of the text' do
it 'matches keywords at the end of the text' do
Glitch::KeywordMute.create!(account: alice, keyword: 'take')
expect(matcher =~ 'This is a hot take').to be_truthy

Loading…
Cancel
Save