Matchers::Have should check for Enumerable#count #91

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@mjbellantoni

The Matchers::Have expectation checks for the existence of #length and #size, but not #count. Since #count is the only method provided by the module Enumerable, it seems like it should support #count as well.

I've made this change and the code is here:

mjbellantoni/rspec-expectations@51f953f

@dchelimsky dchelimsky added a commit that referenced this pull request Sep 27, 2011
@dchelimsky dchelimsky refactor: tease apart Have#matches?
- #91.
149a939
@dchelimsky dchelimsky added a commit that referenced this pull request Sep 27, 2011
@dchelimsky dchelimsky changelog
- #91.
d8edde0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment