Permalink
Browse files

hide Licenses box when a Rubygem has no licenses

addresses Issue #496
  • Loading branch information...
1 parent 5ef2962 commit bb1ab1f7b18b340bb8cca8332342e8d7032f6583 @mattgillooly mattgillooly committed Dec 4, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −4 app/views/rubygems/show.html.erb
  2. +0 −1 features/push.feature
@@ -59,10 +59,12 @@
</div>
<% end %>
- <div class="licenses info-item">
- <h5><%= t '.licenses_header' %></h5>
- <p><%= formatted_licenses @latest_version.licenses %></p>
- </div>
+ <% if @latest_version.licenses.present? %>
+ <div class="licenses info-item">
+ <h5><%= t '.licenses_header' %></h5>
+ <p><%= formatted_licenses @latest_version.licenses %></p>
+ </div>
+ <% end %>
</div>
<% if @rubygem.linkset.present? %>
View
@@ -29,7 +29,6 @@ Feature: Push Gems
And I should see "1.2.3"
And I should see "John Doe"
And I should see "The best gem"
- And I should see "N/A"
Scenario: User pushes existing version of existing gem
Given I am signed up as "email@person.com"

0 comments on commit bb1ab1f

Please sign in to comment.