Skip to content

Instantly share code, notes, and snippets.

@muhqu
Created February 27, 2014 13:34
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 muhqu/9250090 to your computer and use it in GitHub Desktop.
Save muhqu/9250090 to your computer and use it in GitHub Desktop.
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