Skip to content

Add Change MatcherΒ #416

@paulz

Description

@paulz

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) == -1

Environment

  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions