-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_gem_indices.feature
33 lines (29 loc) · 1.41 KB
/
get_gem_indices.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Feature: get gem indices
As an API user
I want to be able to get gem indices
So I know what gems are available to install
Background:
Given the following gems exist:
| name | version number | platform |
| terran | 1.0.0 | ruby |
| terran | 2.0.0 | ruby |
| protoss | 0.0.1 | ruby |
| protoss | 0.1.0.pre | ruby |
Scenario: fetch index of latest version of all gems
When I make a GET request to "/latest_specs.4.8.gz"
Then the response is a compressed gem index that contains exactly the following gems:
| name | version number | platform |
| terran | 2.0.0 | ruby |
| protoss | 0.0.1 | ruby |
Scenario: fetch index of all versions of all gems
When I make a GET request to "/specs.4.8.gz"
Then the response is a compressed gem index that contains exactly the following gems:
| name | version number | platform |
| terran | 1.0.0 | ruby |
| terran | 2.0.0 | ruby |
| protoss | 0.0.1 | ruby |
Scenario: fetch index of all prerelease versions of all gems
When I make a GET request to "/prerelease_specs.4.8.gz"
Then the response is a compressed gem index that contains exactly the following gems:
| name | version number | platform |
| protoss | 0.1.0.pre | ruby |