X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9136a1b1314084e149f86ceec16d1482ccf5d8af..441ef97e93a951b349356df96d8a6ef604c6cab7:/apps/workbench/test/integration/repositories_browse_test.rb diff --git a/apps/workbench/test/integration/repositories_browse_test.rb b/apps/workbench/test/integration/repositories_browse_test.rb index 147bf464be..a6a85b5e4d 100644 --- a/apps/workbench/test/integration/repositories_browse_test.rb +++ b/apps/workbench/test/integration/repositories_browse_test.rb @@ -34,4 +34,20 @@ class RepositoriesTest < ActionDispatch::IntegrationTest click_on sha1 assert_text fakecommit end + + 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" + 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" + visit page_with_token('active', "/repositories/#{repo['uuid']}/tree/#{commit_sha1}") + assert_selector "tbody td a", "foo" + assert_text "12 bytes" + end end