Skip to content

Commit

Permalink
Issue rubygems#261: Show total pushed gems on user profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkBennett committed Nov 4, 2012
1 parent e3cd26f commit f0f9514
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/profiles/show.html.erb
Expand Up @@ -11,7 +11,7 @@
<%= link_to "Edit Profile", edit_profile_path, :id => "edit-profile" %>
<% end %>
<% unless Rails.env.recovery? %>
<h5 id="downloads">Downloads</h5>
<h5 id="downloads">Downloads (<%= @user.total_rubygems_count.to_s %> <%= "gem".pluralize(@user.total_rubygems_count) %>)</h5>
<div id="downloads_count">
<div><strong><%= number_with_delimiter(@user.today_downloads_count) %></strong> today</div>
<div><strong><%= number_with_delimiter(@user.total_downloads_count) %></strong> all time</div>
Expand Down
2 changes: 2 additions & 0 deletions features/profile.feature
Expand Up @@ -22,6 +22,7 @@ Feature: Profile Feature
When I am on "jon@example.com" profile page
Then I should see "sandworm"
And I should see "3 today"
And I should see "(1 gem)"

Scenario: View another user's profile
Given I have signed in with "bob@example.com"
Expand Down Expand Up @@ -58,3 +59,4 @@ Feature: Profile Feature
And I should not see download graphs for the following rubygems:
| subdivisions |
| high_water |
And I should see "(13 gems)"

0 comments on commit f0f9514

Please sign in to comment.