]> cat aescling's git repositories - mastodon.git/commitdiff
Fix example description.
authorDavid Yip <yipdw@member.fsf.org>
Tue, 24 Oct 2017 23:33:02 +0000 (18:33 -0500)
committerDavid Yip <yipdw@member.fsf.org>
Tue, 24 Oct 2017 23:33:02 +0000 (18:33 -0500)
This example actually checks matches at the end of a string.

spec/models/glitch/keyword_mute_spec.rb

index 95e59defc6910138027d99d9f9400f7e3fc53249..1423823badebd3479150fc0f2fb3630a46d01433 100644 (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
This page took 0.025293 seconds and 3 git commands to generate.