Sha256: b80091cf02b7a8678b5904519da38baa6c9286ddbf4d675333a8b64b71f52306

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 KB

Contents

Feature: Markdown API

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

  Scenario: List available templates

    Given I want to list resources
    When I make request within a cassette named "gitignore/list"
    Then the response status should be 200
      And the response type should be JSON
      And the response should have 76 items
      And the response should contain Ruby
      And the response should contain Rails

  Scenario: Get a single template

    Given I want to get resource with the following params:
      | template_name |
      | Ruby |
    When I make request within a cassette named "gitignore/get"
    Then the response status should be 200
      And the response type should be JSON
      And the response should have 2 items

  Scenario: Get a raw contents

    Given I want to get resource with the following params:
      | template_name |
      | Ruby          |
    And I pass the following request options:
      | accept                     |
      | application/vnd.github.raw |
    When I make request within a cassette named "gitignore/get_raw"
    Then the response status should be 200
      And the response type should be RAW
      And the response should contain InstalledFiles

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
github_api-0.11.3 features/gitignore.feature
github_api-0.11.2 features/gitignore.feature
github_api-0.11.1 features/gitignore.feature
github_api-0.11.0 features/gitignore.feature
github_api-0.10.2 features/gitignore.feature
github_api-0.10.1 features/gitignore.feature
github_api-0.10.0 features/gitignore.feature