Created
February 27, 2014 13:34
-
-
Save muhqu/9250090 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: Activity Feed | |
Scenario: Single user likes single photo | |
Given there are users A, B and C | |
And user A follows user B | |
And user C posted a photo P1 | |
When user B likes P1 | |
And after 10 minutes have passed | |
Then user A should see the following activities: | |
| B likes a photo from C: {P1} | | |
Scenario: Single user likes many photos | |
Given there are users A, B and C | |
And user A follows user B | |
And user C posted a photo P1 | |
And user C posted a photo P2 | |
And user C posted a photo P3 | |
When user B likes P1 | |
And user B likes P2 | |
And user B likes P3 | |
And after 10 minutes have passed | |
Then user A should see the following activities: | |
| B likes 3 photos from C: {P3}, {P2}, {P1} | | |
Scenario: Many users like single photo | |
Given there are users A, B, C, D and E | |
And user A follows user B, C, D and E | |
And user B posted a photo P1 | |
When user C likes P1 | |
And user D likes P1 | |
And user E likes P1 | |
And after 10 minutes have passed | |
Then user A should see the following activities: | |
| E, D and C like a photo from B: {P1} | | |
Scenario: Many users like many photo by single user | |
Given there are users A, B, C, D and E | |
And user A follows user B, C, D and E | |
And user B posted a photo P1 | |
And user B posted a photo P2 | |
When user C likes P1 | |
And user D likes P1 | |
And user D likes P2 | |
And user E likes P2 | |
And after 10 minutes have passed | |
Then user A should see the following activities: | |
| E, D and C like 2 photos from B: {P2}, {P1} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment