diff --git a/app/views/rubygems/_gem_members.html.erb b/app/views/rubygems/_gem_members.html.erb index 90f823be220..c7edc7497bc 100644 --- a/app/views/rubygems/_gem_members.html.erb +++ b/app/views/rubygems/_gem_members.html.erb @@ -57,15 +57,18 @@ <% if latest_version.sha256.present? %>

<%= t '.sha_256_checksum' %>:

-
- <%= latest_version.sha256_hex %> +
+ + = + <%= t('copy_to_clipboard') %> + <%= t('copied') %>
<% end %> <% if latest_version.cert_chain.present? %>

<%= t '.signature_period' %>:

- <%= nice_date_for(latest_version.cert_chain_valid_not_before) %> - + <%= nice_date_for(latest_version.cert_chain_valid_not_before) %> - <%= nice_date_for(latest_version.cert_chain_valid_not_after) %> <% if latest_version.signature_expired? %> (<%= t '.expired' %>) diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb index b7308c1912b..fcdbca198a3 100644 --- a/test/functional/versions_controller_test.rb +++ b/test/functional/versions_controller_test.rb @@ -163,7 +163,7 @@ class VersionsControllerTest < ActionController::TestCase end should "render the checksum version" do - assert page.has_content?(@latest_version.sha256_hex) + assert page.has_field?("gem_sha_256_checksum", with: @latest_version.sha256_hex) end end