Created
August 4, 2020 22:46
-
-
Save jahan-addison/69172278d86e24751aa2f9b673bc3925 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Multiple site support | |
Only blog owners can post to a blog, except administrators, | |
who can post to all blogs. | |
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 posts to his own blog | |
Given 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 tries to post to somebody else's blog, and fails | |
Given I am logged in as Dr. Bill | |
When I try to post to "Greg's anti-tax rants" | |
Then I should see "Hey! That's not your blog!" | |
Scenario: Greg posts to a client's blog | |
Given 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