-
-
Notifications
You must be signed in to change notification settings - Fork 611
Closed
Labels
Description
What did you do?
Write a spec that verifies change in the collection
What did you expect to happen?
To use
expect({code}).toChange(collection.count).by(1)What actually happened instead?
let count = collection.count
subject()
expect(collection.count - count) == -1Environment
- Quick (1.1.0)
- Nimble (6.0.1)
- Xcode Version: 8.2.1
- Swift Version: 3
Please also mention which package manager you used and its version. Delete the
other package managers in this list:
- Cocoapods: 1.2.0
Project that demonstrates the issue
Here is an example of change matcher from RSpec:
https://relishapp.com/rspec/rspec-expectations/docs/built-in-matchers/change-matcher
guilhermearaujo, ngtk, kubode, jlanatta, ikesyo and 1 more