Skip to content

Instantly share code, notes, and snippets.

@elnur
Last active December 14, 2015 19:39
Show Gist options
  • Save elnur/5138581 to your computer and use it in GitHub Desktop.
Save elnur/5138581 to your computer and use it in GitHub Desktop.
Feature: Like tips
In order to make good tips more visible
As a tips reader
I need to be able to like tips
Background:
Given I am logged in
Scenario: Vote for a tip of another user
Given a tip from another user
Then the tip should have 0 likes
When I like the tip
Then the tip should have 1 like
Scenario: Can't like a tip more than once
Given a tip from another user
And I liked the tip
Then the tip should have 1 like
When I like the tip
Then the tip should have 1 like
Scenario: Can't like my own tip
Given I have a tip
Then the tip should have 0 likes
When I like the tip
Then the tip should have 0 likes
Scenario: Dislike a tip of another user
Given a tip from another user
And I liked the tip
Then the tip should have 1 like
When I dislike the tip
Then the tip should have 0 likes
Scenario: Can not dislike a tip I liked an hour ago
Given a tip from another user
And I liked the tip 60 minutes ago
Then the tip should have 1 like
When I dislike the tip
Then the tip should have 1 like
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment