Sha256: e9225221a5bcd583fc8c9510d58609e9ec36d4679e14859d9e75922b36c8bb9d

Contents?: true

Size: 1.86 KB

Versions: 3

Compression:

Stored size: 1.86 KB

Contents

Feature: Search API

  Background:
    Given I have "Github::Search" instance

  Scenario: Issues

    Given I want issues resource
      And I pass the following request options:
        | owner        | repo   | state  | keyword |
        | peter-murach | github | closed | api     |
    When I make request within a cassette named "search/issues"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Repositories

    Given I want repositories resource
      And I pass the following request options:
        | keyword |
        | rails   |
    When I make request within a cassette named "search/repos"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Users

    Given I want users resource
      And I pass the following request options:
        | keyword |
        | wycats  |
    When I make request within a cassette named "search/users"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Users with complex keyword

    Given I want users resource
      And I pass the following request options:
        | keyword                     |
        | location:Sheffield repos:20 |
    When I make request within a cassette named "search/users_keyword"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Email

    Given I want email resource
      And I pass the following request options:
        | email            |
        | wycats@gmail.com |
    When I make request within a cassette named "search/email"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
github_api-0.10.2 features/search.feature
github_api-0.10.1 features/search.feature
github_api-0.10.0 features/search.feature