Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

No duplication in just updated #389

Merged
merged 6 commits into from Mar 23, 2012
View
@@ -22,3 +22,19 @@ Feature: Homepage
| fireworm-1.0.0 (20) |
| sandworm-2.0.0 (10) |
| sandworm-1.0.0 (5) |
+
+ Scenario: Just updated
+ Given I am signed up as "email@person.com"
+ And I have an API key for "email@person.com/password"
+ And I have a gem "sandworm" with version "1.0.0"
+ And I have a gem "sandworm" with version "2.0.0"
+ And I have a gem "fireworm" with version "1.0.0"
+ And I push the gem "sandworm-1.0.0.gem" with my API key
+ And I push the gem "sandworm-2.0.0.gem" with my API key
+ And I push the gem "fireworm-1.0.0.gem" with my API key
+
+
+ When I am on the homepage
+ Then I should see the following just updated gems:
+ | fireworm (1.0.0) |
+ | sandworm (2.0.0) |
@@ -12,6 +12,10 @@
assert_equal table.raw.flatten, page.all("#most_downloaded li a").map(&:text)
end
+Then /^I should see the following just updated gems:$/ do |table|
+ assert_equal table.raw.flatten, page.all("#just_updated li a").map(&:text)
+end
+
Then /^I should see the version "([^\"]*)" featured$/ do |version_number|
assert page.has_css?("h3:contains('#{version_number}')")
end