Skip to content

Instantly share code, notes, and snippets.

@tovkal
Last active August 19, 2017 17:50
Show Gist options
  • Save tovkal/3ced332babd7cafffd1c9254368847d2 to your computer and use it in GitHub Desktop.
Save tovkal/3ced332babd7cafffd1c9254368847d2 to your computer and use it in GitHub Desktop.
// Just check the enum
expect(state).to(beContent())
// Check the enum and verify whatever properties we need from the associated value
expect(state).to(beContent { response in
expect(response) === expectedResponse
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment