6617-Display https url in repositories panel in manage_account page and checks
authorManoj <jonam33@gmail.com>
Fri, 17 Jul 2015 14:21:28 +0000 (10:21 -0400)
committerManoj <jonam33@gmail.com>
Fri, 17 Jul 2015 14:21:28 +0000 (10:21 -0400)
if https url is being shows in user_manage_account_test.

apps/workbench/app/views/users/_manage_repositories.html.erb
apps/workbench/test/integration/user_manage_account_test.rb

index bcf0d643198a7f33ccc8eaee48a3de2bb8692564..b616b6d6347fe2056d1f2666bbb060cac44ffb50 100644 (file)
@@ -46,6 +46,7 @@
               <%= writable ? 'writable' : 'read-only' %>
             </td>
             <td style="word-break:break-all;">
+              <code><%= repo.http_fetch_url %></code><br/>
               <code><%= writable ? repo.push_url : repo.fetch_url %></code>
             </td>
             <td>
index e50907bf8b3d8a67c6f307faab011b19aa4210c7..cc28b276c82186cbd991b2fb87569ead7bc067d2 100644 (file)
@@ -180,5 +180,7 @@ class UserManageAccountTest < ActionDispatch::IntegrationTest
       click_on "Create"
     end
     assert_text ":active/workbenchtest.git"
+    assert_match /git@git.*:active\/workbenchtest.git/, page.text
+    assert_match /https:\/\/git.*\/active\/workbenchtest.git/, page.text
   end
 end