mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Don’t use change { … }.by(0) in specs
This commit is contained in:
committed by
Loïc Guitaut
parent
3bfc254c4e
commit
91b6b5eee7
@@ -84,7 +84,7 @@ describe Email::Processor do
|
||||
|
||||
expect {
|
||||
Email::Processor.process!(mail2)
|
||||
}.to change { EmailLog.count }.by(0)
|
||||
}.not_to change { EmailLog.count }
|
||||
|
||||
freeze_time(Date.today + 1)
|
||||
|
||||
@@ -148,7 +148,7 @@ describe Email::Processor do
|
||||
|
||||
expect {
|
||||
Email::Processor.process!(mail)
|
||||
}.to change { EmailLog.count }.by(0)
|
||||
}.not_to change { EmailLog.count }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user