From: David Yip Date: Tue, 24 Oct 2017 23:33:02 +0000 (-0500) Subject: Fix example description. X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=641f90e73adcc9718e610ec6c233d863e94fb92c;p=mastodon.git Fix example description. This example actually checks matches at the end of a string. --- diff --git a/spec/models/glitch/keyword_mute_spec.rb b/spec/models/glitch/keyword_mute_spec.rb index 95e59defc..1423823ba 100644 --- a/spec/models/glitch/keyword_mute_spec.rb +++ b/spec/models/glitch/keyword_mute_spec.rb @@ -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