14716: Fixes wb integration test.
[arvados.git] / apps / workbench / test / integration / repositories_browse_test.rb
index e668b8ca18017ec7076f33e7de643803c10e90ea..056598ef11e1719cf92409947b12be34d6d0485a 100644 (file)
@@ -41,12 +41,9 @@ class RepositoriesTest < ActionDispatch::IntegrationTest
 
   test "browse using arv-git-http" do
     repo = api_fixture('repositories')['foo']
-    portfile =
-      File.expand_path('../../../../../tmp/arv-git-httpd-ssl.port', __FILE__)
-    gitsslport = File.read(portfile)
     Repository.any_instance.
       stubs(:http_fetch_url).
-      returns "https://localhost:#{gitsslport}/#{repo['name']}.git"
+      returns "#{Rails.configuration.Services.GitHTTP.ExternalURL.to_s}/#{repo['name']}.git"
     commit_sha1 = '1de84a854e2b440dc53bf42f8548afa4c17da332'
     visit page_with_token('active', "/repositories/#{repo['uuid']}/commit/#{commit_sha1}")
     assert_text "Date:   Tue Mar 18 15:55:28 2014 -0400"