Add new feature for receive_counts on mocks #77

Merged
merged 2 commits into from Sep 3, 2011

Conversation

Projects
None yet
2 participants
Contributor

adomokos commented Aug 26, 2011

Adding a new cucumber feature to cover:

  • .once
  • .twice
  • exactly(n).times
  • at_least(:once)
  • at_least(n).times
  • at_most(:once)
  • at_most(n).times
Contributor

adomokos commented Sep 1, 2011

Any update on this pull request?

@dchelimsky dchelimsky and 1 other commented on an outdated diff Sep 1, 2011

features/message_expectations/receive_counts.feature
@@ -0,0 +1,212 @@
+Feature: receive counts
+
+ The implicit expectation is that the message passed to should_receive()
@dchelimsky

dchelimsky Sep 1, 2011

Owner

The implicit expectation is one time, and can be overridden explicitly.

@adomokos

adomokos Sep 1, 2011

Contributor

Should I remove this comment? I just copied it from the old rspec site.

@dchelimsky

dchelimsky Sep 1, 2011

Owner

So is this whole thing just copied over from rspec-1?

@adomokos

adomokos Sep 1, 2011

Contributor

Line 3 and 4 did. I'll remove it.

Contributor

adomokos commented Sep 2, 2011

Removed the incorrect description. Is there anything else I should change?

dchelimsky merged commit 8d35db6 into rspec:master Sep 3, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment