Skip to content

Instantly share code, notes, and snippets.

@bguthrie
Created May 2, 2009 22:05
Show Gist options
  • Save bguthrie/105730 to your computer and use it in GitHub Desktop.
Save bguthrie/105730 to your computer and use it in GitHub Desktop.
user should receive(username, name, firstName) andReturn("guybrush")
; is equivalent to
user should receive(username: "guybrush", name: "guybrush", firstName: "guybrush")
user should receive(reload, save) anyNumberOfTimes
; is equivalent to
user should receive(reload anyNumberOfTimes, save anyNumberOfTimes)
; is equivalent to
user should receive reload anyNumberOfTimes
user should receive save anyNumberOfTimes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment