Sha256: c78453460febabb30996587fcfd45fb637673a573d5c340ab1446c82e5dbfae4

Contents?: true

Size: 1.8 KB

Versions: 4

Compression:

Stored size: 1.8 KB

Contents

Feature: Show timeline of comments

  As a Redditor
  I want to visualize when another Redditor comments most often
  In order to see what time they like to comment

  Scenario: Show timeline data for user
    Given the Reddit service returns comments for the user "mipadi"
    When I run `usaidwat timeline mipadi`
    Then it should pass with:
      """
        0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      S                 *           *                 *                        
      M                          *  *  *     *  *  *  *     *     *            
      T                       *  *  *  *  *  *  *  *     *                     
      W                          *  *  *  *  *     *                           
      T                          *  *  *     *  *  *                 *  *      
      F                          *  *  *                 *        *  *  *      
      S                                      *  *                              
      """

  Scenario: Show timeline data for a user with no comments
    Given the Reddit service returns comments for the user "blank"
    When I run `usaidwat timeline blank`
    Then it should pass with:
      """
      blank has no comments.
      """

  Scenario: Show timeline data without specifying a user
    Given the Reddit service returns comments for the user "mipadi"
    When I run `usaidwat timeline testuser`
    Then the exit status should not be 0
    And stderr should contain exactly:
      """
      No such user: testuser
      """

  Scenario: Show timeline without specifying a user
    Given the Reddit service returns comments for the user "mipadi"
    When I run `usaidwat timeline`
    Then the exit status should not be 0
    And stderr should contain exactly:
      """
      You must specify a username
      """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
usaidwat-1.6.1 features/timeline.feature
usaidwat-1.6.0 features/timeline.feature
usaidwat-1.5.1 features/timeline.feature
usaidwat-1.5.0 features/timeline.feature