Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better matchers for output records during specs #15

Open
dhruvbansal opened this issue Apr 15, 2013 · 0 comments
Open

Better matchers for output records during specs #15

dhruvbansal opened this issue Apr 15, 2013 · 0 comments
Labels

Comments

@dhruvbansal
Copy link
Contributor

There aren't a lot of options for interrogating or introspecting on the output records of a processor during a unit test. The best we have is

processor(:foo).given(record, record, ...).should emit(N).records

or

output = processor(:foo).given(record, record, ...).output
output.should ....
output.should ....

We should provide matchers which make it easy to

  • test the class of output record(s)
  • test properties of output record(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant