Skip to content

Instantly share code, notes, and snippets.

@ono
Created June 8, 2012 07:15
Show Gist options
  • Select an option

  • Save ono/2894151 to your computer and use it in GitHub Desktop.

Select an option

Save ono/2894151 to your computer and use it in GitHub Desktop.
class User
# e.g. stephen.issue_membership ono
def issue_membership(to_user)
# do stuff
end
end
describe User do
describe "issue_membership" do
it "issues a membership to a given user"
it "uses a subscription the user belongs to"
it "doesn't issue a membership unless the user is admin"
...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment