Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 81 lines (69 sloc) 3.305 kb
57c5513 @qrush Tracking version downloads
qrush authored
1 Feature: Download Gems
2 In order to get some awesome gems
3 A developer
4 Should be able to download some gems
5
6 Scenario: Download a gem
7 Given I am signed up and confirmed as "email@person.com/password"
8 And I have a gem "sandworm" with version "1.0.0"
9 And I have a gem "sandworm" with version "2.0.0"
10 And I have an api key for "email@person.com/password"
11 And I push the gem "sandworm-1.0.0.gem" with my api key
12 And I push the gem "sandworm-2.0.0.gem" with my api key
13 And the system processes jobs
14
15 When I visit the gem page for "sandworm"
16 Then I should see "0 total downloads"
17
18 When I download the rubygem "sandworm" version "2.0.0" 3 times
19 And the system processes jobs
20 And I visit the gem page for "sandworm"
21 Then I should see "3 total downloads"
6bc2482 @qrush Fix the downloads story, thanks CI
qrush authored
22 And I should see "3 for this version"
57c5513 @qrush Tracking version downloads
qrush authored
23
24 When I download the rubygem "sandworm" version "1.0.0" 2 times
25 And the system processes jobs
26 And I visit the gem page for "sandworm"
27 Then I should see "5 total downloads"
6bc2482 @qrush Fix the downloads story, thanks CI
qrush authored
28 And I should see "3 for this version"
57c5513 @qrush Tracking version downloads
qrush authored
29 When I follow "1.0.0"
30 Then I should see "5 total downloads"
6bc2482 @qrush Fix the downloads story, thanks CI
qrush authored
31 And I should see "2 for this version"
fbea0b8 @qrush Tracking downloads properly for platform gems, required refactoring for ...
qrush authored
32
33 Scenario: Download a platform gem
34 Given I am signed up and confirmed as "email@person.com/password"
35 And I have a gem "crysknife" with version "1.0.0"
36 And I have a gem "crysknife" with version "1.0.0" and platform "java"
37 And I have an api key for "email@person.com/password"
38 And I push the gem "crysknife-1.0.0.gem" with my api key
39 And I push the gem "crysknife-1.0.0-java.gem" with my api key
40 And the system processes jobs
41
42 When I visit the gem page for "crysknife" version "1.0.0"
43 Then I should see "0 total downloads"
44
45 When I download the rubygem "crysknife" version "1.0.0" 3 times
46 And the system processes jobs
47 And I visit the gem page for "crysknife" version "1.0.0"
48 Then I should see "3 total downloads"
6bc2482 @qrush Fix the downloads story, thanks CI
qrush authored
49 And I should see "3 for this version"
fbea0b8 @qrush Tracking downloads properly for platform gems, required refactoring for ...
qrush authored
50
51 When I download the rubygem "crysknife" version "1.0.0-java" 2 times
52 And the system processes jobs
53 And I visit the gem page for "crysknife" version "1.0.0-java"
54 Then I should see "5 total downloads"
6bc2482 @qrush Fix the downloads story, thanks CI
qrush authored
55 And I should see "2 for this version"
ab0e285 @andhapp Added a feature, and link to download .gem from gem's version page
andhapp authored
56
57 Scenario: Download a .gem file for a platform gem
58 Given I am signed up and confirmed as "email@person.com/password"
59 And I have a gem "andhapp" with version "1.1.1"
60 And I have a gem "andhapp" with version "1.1.0"
61 And I have an api key for "email@person.com/password"
62 And I push the gem "andhapp-1.1.1.gem" with my api key
63 And I push the gem "andhapp-1.1.0.gem" with my api key
64 And the system processes jobs
65
66 When I visit the gem page for "andhapp" version "1.1.1"
67 Then I should see "0 total downloads"
68
69 When I visit the gem page for "andhapp" version "1.1.1"
70 Then I follow "Download"
71 And the system processes jobs
72 And I visit the gem page for "andhapp"
73 Then I should see "1 total downloads"
74 And I should see "1 for this version"
75
76 When I visit the gem page for "andhapp" version "1.1.0"
77 Then I follow "Download"
78 And the system processes jobs
79 And I visit the gem page for "andhapp"
80 Then I should see "2 total downloads"
81 And I should see "1 for this version"
Something went wrong with that request. Please try again.