mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +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
@ -106,7 +106,7 @@ describe Notification do
|
||||
post_args[:topic].notify_muted!(user)
|
||||
expect {
|
||||
Fabricate(:post, user: user2, topic: post.topic, raw: 'hello @' + user.username)
|
||||
}.to change(user.notifications, :count).by(0)
|
||||
}.not_to change(user.notifications, :count)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user