mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:57:15 +08:00
DEV: Don’t use change { … }.by(0)
in specs
This commit is contained in:

committed by
Loïc Guitaut

parent
3bfc254c4e
commit
91b6b5eee7
@ -490,7 +490,7 @@ describe DiscourseNarrativeBot::TrackSelector do
|
||||
post.update!(raw: 'thanks @discobot!')
|
||||
|
||||
expect { described_class.new(:reply, user, post_id: post.id).select }
|
||||
.to change { PostAction.count }.by(0)
|
||||
.not_to change { PostAction.count }
|
||||
|
||||
new_post = Post.last
|
||||
expect(new_post.raw).to eq(random_mention_reply)
|
||||
|
Reference in New Issue
Block a user