From b90ea37e3f13c099209a35f3dae0c1a68023cbae Mon Sep 17 00:00:00 2001
From: Diego Araújo
+ <%= t('repository.show.notify_push_url') %>: + <%= repository_notify_push_url(@repository.id) %> +
+<% end %> +<%= t('repository.show.date_processing') %>:
<%= form_tag(repository_state_with_date_path(@repository.id), method: "get", remote: true) do %> diff --git a/config/locales/views/repository/en.yml b/config/locales/views/repository/en.yml index 0d30397..4b4de20 100644 --- a/config/locales/views/repository/en.yml +++ b/config/locales/views/repository/en.yml @@ -38,3 +38,4 @@ en: metric_results: "Tree Metric Results" loading: "Loading data. Please, wait." date_processing: "Retrieve the closest processing information from" + notify_push_url: 'Notify Push Url for Gitlab' diff --git a/config/locales/views/repository/pt.yml b/config/locales/views/repository/pt.yml index 9cdea76..723856b 100644 --- a/config/locales/views/repository/pt.yml +++ b/config/locales/views/repository/pt.yml @@ -38,3 +38,4 @@ pt: metric_results: "Resultados de Métrica" loading: "Carregando os dados. Por favor, aguarde." date_processing: "Obtenha a informação de processamento mais próxima a" + notify_push_url: 'Url para notificações do Gitlab' diff --git a/features/repository/show/repository_info.feature b/features/repository/show/repository_info.feature index bcd8e74..15d8a3a 100644 --- a/features/repository/show/repository_info.feature +++ b/features/repository/show/repository_info.feature @@ -19,6 +19,7 @@ Feature: Show Repository And I should see "Description" And I should see "License" And I should see the given repository's content + And I should not see "Notify Push Url for Gitlab" @kalibro_configuration_restart @kalibro_processor_restart @javascript Scenario: With a ready processing and asking to reprocess @@ -32,6 +33,7 @@ Feature: Show Repository And I wait up for a ready processing When I visit the repository show page Then I should see the sample repository name + And I should see the correct notify push url And I should see "State" And I should see "Creation Date" And I should see "PREPARING time" diff --git a/features/step_definitions/repository_steps.rb b/features/step_definitions/repository_steps.rb index de1c921..2146aa3 100644 --- a/features/step_definitions/repository_steps.rb +++ b/features/step_definitions/repository_steps.rb @@ -281,3 +281,8 @@ end Then(/^I should get a not found error$/) do expect(page.driver.status_code).to eq(404) end + +Then(/^I should see the correct notify push url$/) do + step "I should see \"Notify Push Url for Gitlab\"" + expect(page).to have_selector("input[value=\"#{repository_notify_push_url(host: Capybara.current_session.server.host, port: Capybara.current_session.server.port, locale: :en, id: @repository.id)}\"]") +end -- libgit2 0.21.2