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

at_least and at_most #3

Merged
merged 2 commits into from Apr 15, 2013
Merged

at_least and at_most #3

merged 2 commits into from Apr 15, 2013

Conversation

ivanacostarubio
Copy link
Contributor

Hi!

This pull request implements the at_least(n) and at_most(n) expectation. I would love to know how do you feel about:

@mock.should_receive(:message).at_least(4)

vs

@mock.should_receive(:message).at_least(4).times

chuyeow added a commit that referenced this pull request Apr 15, 2013
Add at_least and at_most expectations.
@chuyeow chuyeow merged commit 215d8ac into chuyeow:master Apr 15, 2013
@chuyeow
Copy link
Owner

chuyeow commented Apr 15, 2013

@ivanacostarubio those expectations really needed to be implemented - that TODO has been there since forever. Appreciate your help!

@chuyeow
Copy link
Owner

chuyeow commented Apr 15, 2013

@ivanacostarubio FYI, I changed how at_most works so that it's OK even if you never call the method. See 92b62b7

@ivanacostarubio
Copy link
Contributor Author

@chuyeow Super. I am glad I could help!

I am thinking on adding the exactly expectation soon. 📦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants