Skip to content

Instantly share code, notes, and snippets.

@emk
Created December 31, 2008 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emk/41986 to your computer and use it in GitHub Desktop.
Save emk/41986 to your computer and use it in GitHub Desktop.
Feature: Multiple site support
As a Mephisto site owner
I want to host blogs for different people
In order to make gigantic piles of money
Background:
Given a global administrator named "Greg"
And a blog named "Greg's anti-tax rants"
And a customer named "Dr. Bill"
And a blog named "Expensive Therapy" owned by "Dr. Bill"
Scenario: Dr. Bill should be able to post to his own blog
Given that I am logged in as Dr. Bill
When I try to post to "Expensive Therapy"
Then I should see "Your article was published."
Scenario: Dr. Bill should not be able to post to other peoples' blogs
Given I am logged in as Dr. Bill
When I try to post an article to "Greg's anti-tax rants"
Then I should see "Hey! That's not your blog!"
Scenario: Greg should be able to post to anybody's blog
Given that I am logged in as Greg
When I try to post to "Expensive therapy"
Then I should see "Your article was published."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment