mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix example description.
This example actually checks matches at the end of a string.
This commit is contained in:
parent
f5a3283976
commit
641f90e73a
@ -48,7 +48,7 @@ RSpec.describe Glitch::KeywordMute, type: :model do
|
|||||||
expect(matcher =~ 'Take this').to be_truthy
|
expect(matcher =~ 'Take this').to be_truthy
|
||||||
end
|
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')
|
Glitch::KeywordMute.create!(account: alice, keyword: 'take')
|
||||||
|
|
||||||
expect(matcher =~ 'This is a hot take').to be_truthy
|
expect(matcher =~ 'This is a hot take').to be_truthy
|
||||||
|
Loading…
Reference in New Issue
Block a user