Commit 7ca0abeaac0eeb6da108f04e9100e085a63d855c
1 parent
f40f1b6e
Exists in
colab
and in
4 other branches
Translations for Repository
Missing date_select.feature
Showing
19 changed files
with
199 additions
and
53 deletions
Show diff stats
app/views/modules/_metric_results.html.erb
| 1 | 1 | <table class="table table-hover"> |
| 2 | 2 | <thead> |
| 3 | - <th>Metric</th> | |
| 4 | - <th>Value</th> | |
| 5 | - <th>Weight</th> | |
| 6 | - <th>Threshold</th> | |
| 3 | + <th><%= t('activemodel.attributes.metric_result.metric') %></th> | |
| 4 | + <th><%= t('activemodel.attributes.metric_result.value') %></th> | |
| 5 | + <th><%= t('activemodel.attributes.metric_result.weight') %></th> | |
| 6 | + <th><%= t('activemodel.attributes.metric_result.threshold') %></th> | |
| 7 | 7 | </thead> |
| 8 | 8 | |
| 9 | 9 | <tbody> | ... | ... |
app/views/modules/_module_tree.html.erb
| 1 | 1 | <p> |
| 2 | - <strong>Name:</strong> | |
| 2 | + <strong><%= KalibroModule.human_attribute_name('name') %>:</strong> | |
| 3 | 3 | <%= format_module_name(@root_module_result.kalibro_module.name) %> |
| 4 | 4 | </p> |
| 5 | 5 | <p> |
| 6 | - <strong>Granularity:</strong> | |
| 6 | + <strong><%= KalibroModule.human_attribute_name('granularity') %>:</strong> | |
| 7 | 7 | <%= @root_module_result.kalibro_module.granularity %> |
| 8 | 8 | </p> |
| 9 | 9 | <p> |
| 10 | - <strong>Grade:</strong> | |
| 10 | + <strong><%= KalibroModule.human_attribute_name('grade') %>:</strong> | |
| 11 | 11 | <%= format_grade(@root_module_result.grade) %> |
| 12 | 12 | </p> |
| 13 | 13 | <% unless @root_module_result.parent_id.nil? %> |
| ... | ... | @@ -19,9 +19,9 @@ |
| 19 | 19 | <% unless children.empty? %> |
| 20 | 20 | <table class="table table-hover"> |
| 21 | 21 | <thead> |
| 22 | - <th>Name</th> | |
| 23 | - <th>Granularity</th> | |
| 24 | - <th>Grade</th> | |
| 22 | + <th><%= KalibroModule.human_attribute_name('name') %></th> | |
| 23 | + <th><%= KalibroModule.human_attribute_name('granularity') %></th> | |
| 24 | + <th><%= KalibroModule.human_attribute_name('grade') %></th> | |
| 25 | 25 | </thead> |
| 26 | 26 | <tbody> |
| 27 | 27 | <%= render partial: 'module_result', collection: children %> | ... | ... |
app/views/repositories/_form.html.erb
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | </div> |
| 12 | 12 | <div class="help-container"> |
| 13 | 13 | <p> |
| 14 | - The name of your Repository. | |
| 14 | + <%= t('activemodel.hints.repository.name') %> | |
| 15 | 15 | </p> |
| 16 | 16 | </div> |
| 17 | 17 | </div> |
| ... | ... | @@ -23,7 +23,7 @@ |
| 23 | 23 | </div> |
| 24 | 24 | <div class="help-container"> |
| 25 | 25 | <p> |
| 26 | - A short description of your Repository. | |
| 26 | + <%= t('activemodel.hints.repository.description') %> | |
| 27 | 27 | </p> |
| 28 | 28 | </div> |
| 29 | 29 | </div> |
| ... | ... | @@ -35,7 +35,7 @@ |
| 35 | 35 | </div> |
| 36 | 36 | <div class="help-container"> |
| 37 | 37 | <p> |
| 38 | - The source code's license. | |
| 38 | + <%= t('activemodel.hints.repository.license') %> | |
| 39 | 39 | </p> |
| 40 | 40 | </div> |
| 41 | 41 | </div> |
| ... | ... | @@ -47,7 +47,7 @@ |
| 47 | 47 | </div> |
| 48 | 48 | <div class="help-container"> |
| 49 | 49 | <p> |
| 50 | - The version control system the Repository uses. | |
| 50 | + <%= t('activemodel.hints.repository.scm_type') %> | |
| 51 | 51 | </p> |
| 52 | 52 | </div> |
| 53 | 53 | </div> |
| ... | ... | @@ -59,7 +59,7 @@ |
| 59 | 59 | </div> |
| 60 | 60 | <div class="help-container"> |
| 61 | 61 | <p> |
| 62 | - The URL where the Repository is located. | |
| 62 | + <%= t('activemodel.hints.repository.address') %> | |
| 63 | 63 | </p> |
| 64 | 64 | </div> |
| 65 | 65 | </div> |
| ... | ... | @@ -71,20 +71,20 @@ |
| 71 | 71 | </div> |
| 72 | 72 | <div class="help-container"> |
| 73 | 73 | <p> |
| 74 | - Select how often the Repository will be reprocessed. | |
| 74 | + <%= t('activemodel.hints.repository.period') %> | |
| 75 | 75 | </p> |
| 76 | 76 | </div> |
| 77 | 77 | </div> |
| 78 | 78 | |
| 79 | 79 | <div class="form-row"> |
| 80 | 80 | <div class="field-container"> |
| 81 | - <%= f.label :kalibro_configuration_id, 'Configuration', class: 'control-label' %> | |
| 81 | + <%= f.label :kalibro_configuration_id, KalibroConfiguration.model_name.human, class: 'control-label' %> | |
| 82 | 82 | <% configuration_list = KalibroClient::Entities::Configurations::KalibroConfiguration.all.map { |conf| [conf.name, conf.id] } %> |
| 83 | 83 | <%= f.select( :kalibro_configuration_id, configuration_list, class: 'tooltip-control' ) %> |
| 84 | 84 | </div> |
| 85 | 85 | <div class="help-container"> |
| 86 | 86 | <p> |
| 87 | - A <%= link_to 'Configuration', tutorials_path('keywords', anchor: 'configuration') %> defines all the metrics to be calculated in the source code. Choose your weapon! | |
| 87 | + <%= t('activemodel.hints.repository.kalibro_configuration', configuration_href: link_to(KalibroConfiguration.model_name.human, tutorials_path('keywords', anchor: 'configuration'))).html_safe %> | |
| 88 | 88 | </p> |
| 89 | 89 | </div> |
| 90 | 90 | </div> | ... | ... |
app/views/repositories/_metric_results_error.html.erb
app/views/repositories/_module_tree_error.html.erb
app/views/repositories/_processing_information.html.erb
| 1 | 1 | <p> |
| 2 | - <strong>State:</strong> | |
| 2 | + <strong><%= t('activemodel.attributes.processing.state') %>:</strong> | |
| 3 | 3 | <%= @processing.state %> |
| 4 | 4 | </p> |
| 5 | 5 | |
| 6 | 6 | <p> |
| 7 | - <strong>Creation date:</strong> | |
| 7 | + <strong><%= t('activemodel.attributes.processing.creation_date') %>:</strong> | |
| 8 | 8 | <%= @processing.created_at.strftime("%Y/%m/%d at %Hh%M (%z)") %> |
| 9 | 9 | </p> |
| 10 | 10 | ... | ... |
app/views/repositories/_unstarted_processing.html.erb
| 1 | -<p>This Repository has no processings yet. Please, wait an instant as we start it.</p> | |
| 1 | +<p><%= t('activemodel.errors.repository.unstarted_processing') %></p> | |
| 2 | 2 | |
| 3 | -<div id="processing_information"><%= image_tag 'loader.gif' %> Loading data. Please, wait.</div> | |
| 4 | 3 | \ No newline at end of file |
| 4 | +<div id="processing_information"><%= image_tag 'loader.gif' %> <%= t('repository.show.loading') %></div> | |
| 5 | 5 | \ No newline at end of file | ... | ... |
app/views/repositories/edit.html.erb
app/views/repositories/new.html.erb
app/views/repositories/show.html.erb
| ... | ... | @@ -3,36 +3,36 @@ |
| 3 | 3 | </div> |
| 4 | 4 | |
| 5 | 5 | <p> |
| 6 | - <strong>Description:</strong> | |
| 6 | + <strong><%= Repository.human_attribute_name('description') %>:</strong> | |
| 7 | 7 | <%= @repository.description %> |
| 8 | 8 | </p> |
| 9 | 9 | |
| 10 | 10 | <p> |
| 11 | - <strong>License:</strong> | |
| 11 | + <strong><%= Repository.human_attribute_name('license') %>:</strong> | |
| 12 | 12 | <%= @repository.license %> |
| 13 | 13 | </p> |
| 14 | 14 | |
| 15 | 15 | <p> |
| 16 | - <strong>Type:</strong> | |
| 16 | + <strong><%= Repository.human_attribute_name('type') %>:</strong> | |
| 17 | 17 | <%= @repository.scm_type %> |
| 18 | 18 | </p> |
| 19 | 19 | |
| 20 | 20 | <p> |
| 21 | - <strong>Address:</strong> | |
| 21 | + <strong><%= Repository.human_attribute_name('address') %>:</strong> | |
| 22 | 22 | <%= @repository.address %> |
| 23 | 23 | </p> |
| 24 | 24 | |
| 25 | 25 | <p> |
| 26 | - <strong>Periodicity:</strong> | |
| 26 | + <strong><%= Repository.human_attribute_name('period') %>:</strong> | |
| 27 | 27 | <%= periodicity_option(@repository.period) %> |
| 28 | 28 | </p> |
| 29 | 29 | |
| 30 | 30 | <p> |
| 31 | - <strong>Configuration:</strong> | |
| 31 | + <strong><%= KalibroConfiguration.model_name.human %>:</strong> | |
| 32 | 32 | <%= @kalibro_configuration.name %> |
| 33 | 33 | </p> |
| 34 | 34 | |
| 35 | -<p><strong> Retrieve the closest processing information from: </strong></p> | |
| 35 | +<p><strong> <%= t('repository.show.date_processing') %>: </strong></p> | |
| 36 | 36 | |
| 37 | 37 | <%= form_tag(project_repository_state_with_date_path(@repository.project_id, @repository.id), method: "post", remote: true) do %> |
| 38 | 38 | <p> |
| ... | ... | @@ -42,7 +42,7 @@ |
| 42 | 42 | <%= select_tag(:month, options_for_select(month_options), :style => "width:55px; margin-top:5px") %> |
| 43 | 43 | <%= label_tag :year, t("year") %>: |
| 44 | 44 | <%= select_tag(:year, options_for_select(year_options), :style => "width:70px; margin-top:5px") %> |
| 45 | - <%= submit_tag("Search", class: 'btn btn-info', style: 'margin-bottom:5px', onClick: "Module.Repository.set_loader('#{image_tag 'loader.gif'} Loading data. Please, wait.')") %> | |
| 45 | + <%= submit_tag(t('search'), class: 'btn btn-info', style: 'margin-bottom:5px', onClick: "Module.Repository.set_loader('#{image_tag 'loader.gif'} Loading data. Please, wait.')") %> | |
| 46 | 46 | </p> |
| 47 | 47 | <% end %> |
| 48 | 48 | |
| ... | ... | @@ -50,18 +50,18 @@ |
| 50 | 50 | |
| 51 | 51 | <div id="repository-accordion"> |
| 52 | 52 | <div id="processing-accordion"> |
| 53 | - <h3 class="jquery-ui-accordion">Processing information</h3> | |
| 54 | - <div id="processing_information"><%= image_tag 'loader.gif' %> Loading data. Please, wait.</div> | |
| 53 | + <h3 class="jquery-ui-accordion"><%= t('repository.show.processing_information') %></h3> | |
| 54 | + <div id="processing_information"><%= image_tag 'loader.gif' %> <%= t('repository.show.loading') %></div> | |
| 55 | 55 | </div> |
| 56 | 56 | |
| 57 | 57 | <div id="module-accordion"> |
| 58 | - <h3 class="jquery-ui-accordion">Modules Tree</h3> | |
| 59 | - <div id="module_tree"><%= image_tag 'loader.gif' %> Loading data. Please, wait.</div> | |
| 58 | + <h3 class="jquery-ui-accordion"><%= t('repository.show.modules_tree') %></h3> | |
| 59 | + <div id="module_tree"><%= image_tag 'loader.gif' %> <%= t('repository.show.loading') %></div> | |
| 60 | 60 | </div> |
| 61 | 61 | |
| 62 | 62 | <div id="metric-accordion"> |
| 63 | - <h3 class="jquery-ui-accordion">Metric Results</h3> | |
| 64 | - <div id="metric_results"><%= image_tag 'loader.gif' %> Loading data. Please, wait.</div> | |
| 63 | + <h3 class="jquery-ui-accordion"><%= t('repository.show.metric_results') %></h3> | |
| 64 | + <div id="metric_results"><%= image_tag 'loader.gif' %> <%= t('repository.show.loading') %></div> | |
| 65 | 65 | </div> |
| 66 | 66 | </div> |
| 67 | 67 | <script type="text/javascript"> |
| ... | ... | @@ -82,8 +82,8 @@ |
| 82 | 82 | |
| 83 | 83 | <hr/> |
| 84 | 84 | |
| 85 | -<%= link_to 'Back', project_path(@repository.project_id), class: 'btn btn-default' %> | |
| 85 | +<%= link_to t('back'), project_path(@repository.project_id), class: 'btn btn-default' %> | |
| 86 | 86 | <% if project_owner? @repository.project_id %> |
| 87 | - <%= link_to 'Reprocess', project_repository_process_path(@repository.project_id, @repository.id), class: 'btn btn-info' %> | |
| 88 | - <%= link_to 'Destroy', project_repository_path(@repository.project_id, @repository.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this Repository?' }, class: 'btn btn-danger' %> | |
| 87 | + <%= link_to t('repository.show.reprocess'), project_repository_process_path(@repository.project_id, @repository.id), class: 'btn btn-info' %> | |
| 88 | + <%= link_to t('destroy'), project_repository_path(@repository.project_id, @repository.id), method: :delete, data: { confirm: t('sure_destroy', model: Repository.model_name.human) }, class: 'btn btn-danger' %> | |
| 89 | 89 | <% end %> | ... | ... |
| ... | ... | @@ -0,0 +1,19 @@ |
| 1 | +en: | |
| 2 | + activemodel: | |
| 3 | + models: | |
| 4 | + metric_result: | |
| 5 | + one: Metric Result | |
| 6 | + other: Metric Results | |
| 7 | + module: | |
| 8 | + one: Module | |
| 9 | + other: Modules | |
| 10 | + attributes: | |
| 11 | + metric_result: | |
| 12 | + metric: 'Metric' | |
| 13 | + value: 'Value' | |
| 14 | + weight: 'Weight' | |
| 15 | + threshold: 'Threshold' | |
| 16 | + module: | |
| 17 | + name: 'Name' | |
| 18 | + granularity: 'Granularity' | |
| 19 | + grade: 'Grade' | ... | ... |
| ... | ... | @@ -0,0 +1,19 @@ |
| 1 | +pt: | |
| 2 | + activemodel: | |
| 3 | + models: | |
| 4 | + metric_result: | |
| 5 | + one: Resultado de Métrica | |
| 6 | + other: Resultados de Métricas | |
| 7 | + kalibro_module: | |
| 8 | + one: Módulo | |
| 9 | + other: Módulos | |
| 10 | + attributes: | |
| 11 | + metric_result: | |
| 12 | + metric: 'Métrica' | |
| 13 | + value: 'Valor' | |
| 14 | + weight: 'Peso' | |
| 15 | + threshold: 'Limiar' | |
| 16 | + kalibro_module: | |
| 17 | + name: 'Nome' | |
| 18 | + granularity: 'Granularidade' | |
| 19 | + grade: 'Nota' | |
| 0 | 20 | \ No newline at end of file | ... | ... |
| ... | ... | @@ -0,0 +1,22 @@ |
| 1 | +pt: | |
| 2 | + activemodel: | |
| 3 | + models: | |
| 4 | + kalibro_range: | |
| 5 | + one: Intervalo | |
| 6 | + other: Intervalos | |
| 7 | + attributes: | |
| 8 | + kalibro_range: | |
| 9 | + reading: 'Leitura' | |
| 10 | + beginning: 'Início' | |
| 11 | + end: 'Fim' | |
| 12 | + comments: 'Comentários' | |
| 13 | + hints: | |
| 14 | + kalibro_range: | |
| 15 | + reading: 'A %{reading_href} associada a este %{range_href}.' | |
| 16 | + beginning: "Limite inferior de um Intervalo." | |
| 17 | + end: "Limite superior de um Intervalo." | |
| 18 | + comments: 'Uma explicação do porquê você escolheu este Intervalo, com esta Leitura para esta %{metric_href}.' | |
| 19 | + errors: | |
| 20 | + kalibro_range: | |
| 21 | + no_readings: 'Você deve ter Leituras associadas ao Grupo de Leitura para criar um novo intervalo.' | |
| 22 | + reading_group_belongs_to_another: 'O Grupo de Leitura da sua Configuração de Métrica pertence a outro usuário e você não tem permissão para modificá-lo.' | |
| 0 | 23 | \ No newline at end of file | ... | ... |
| ... | ... | @@ -0,0 +1,36 @@ |
| 1 | +en: | |
| 2 | + activemodel: | |
| 3 | + models: | |
| 4 | + repository: | |
| 5 | + one: Repository | |
| 6 | + other: Repositories | |
| 7 | + attributes: | |
| 8 | + repository: | |
| 9 | + name: 'Name' | |
| 10 | + description: 'Description' | |
| 11 | + license: 'License' | |
| 12 | + scm_type: 'Type' | |
| 13 | + address: 'Address' | |
| 14 | + period: 'Period' | |
| 15 | + hints: | |
| 16 | + repository: | |
| 17 | + name: 'The name of your Repository.' | |
| 18 | + description: 'A short description of your Repository.' | |
| 19 | + license: "The source code's license." | |
| 20 | + scm_type: 'The version control system the Repository uses.' | |
| 21 | + address: 'The URL where the Repository is located.' | |
| 22 | + period: 'Select how often the Repository will be reprocessed.' | |
| 23 | + kalibro_configuration: 'A %{configuration_href} defines all the metrics to be calculated in the source code. Choose your weapon!' | |
| 24 | + errors: | |
| 25 | + repository: | |
| 26 | + no_metric_results: 'Repository process returned with error. There are no metric results.' | |
| 27 | + no_modeule_tree: 'Repository process returned with error. There is no module tree.' | |
| 28 | + unstarted_processing: "This Repository has no processings yet. Please, wait an instant as we start it." | |
| 29 | + repository: | |
| 30 | + show: | |
| 31 | + reprocess: 'Reprocess' | |
| 32 | + processing_information: 'Processing Information' | |
| 33 | + modules_tree: 'Modules Tree' | |
| 34 | + metric_results: 'Metric Results' | |
| 35 | + loading: 'Loading data. Please, wait.' | |
| 36 | + date_processing: 'Retrieve the closest processing information from' | |
| 0 | 37 | \ No newline at end of file | ... | ... |
| ... | ... | @@ -0,0 +1,36 @@ |
| 1 | +pt: | |
| 2 | + activemodel: | |
| 3 | + models: | |
| 4 | + repository: | |
| 5 | + one: Repositório | |
| 6 | + other: Repositórios | |
| 7 | + attributes: | |
| 8 | + repository: | |
| 9 | + name: 'Nome' | |
| 10 | + description: 'Descrição' | |
| 11 | + license: 'Licensa' | |
| 12 | + scm_type: 'Tipo' | |
| 13 | + address: 'endereço' | |
| 14 | + period: 'Período' | |
| 15 | + hints: | |
| 16 | + repository: | |
| 17 | + name: 'O nome do seu Repositório.' | |
| 18 | + description: 'Uma descrição breve do seu Repositório.' | |
| 19 | + license: "A licensa do código-fonte." | |
| 20 | + scm_type: 'O controlador de versão utilizado pelo Repositório.' | |
| 21 | + address: 'A URL onde o respositório está acessível.' | |
| 22 | + period: 'Selecione o quão frequentemente o repositório será reprocessado.' | |
| 23 | + kalibro_configuration: 'Uma %{configuration_href} define todas as métricas a serem extraídas do códifo-fonte.' | |
| 24 | + errors: | |
| 25 | + repository: | |
| 26 | + no_metric_results: 'O processamento do Repósitório retornou um erro. Não há Resultados de Métrica.' | |
| 27 | + no_modeule_tree: 'Repository process returned with error. Não há uma Árvore de Módulos.' | |
| 28 | + unstarted_processing: "Este Repositório ainda não tem Processamentos. Por favor, aguarde um instante enquanto o iniciamos." | |
| 29 | + repository: | |
| 30 | + show: | |
| 31 | + reprocess: 'Reprocessar' | |
| 32 | + processing_information: 'Informação do Processamento' | |
| 33 | + modules_tree: 'Árvore de Módulos' | |
| 34 | + metric_results: 'Resultados de Métrica' | |
| 35 | + loading: 'Carregando os dados. Por favor, aguarde.' | |
| 36 | + date_processing: 'Obtenha a informação de processamento mais próxima a' | |
| 0 | 37 | \ No newline at end of file | ... | ... |
features/repository/show/date_select.feature
| ... | ... | @@ -3,14 +3,14 @@ Feature: Date Select |
| 3 | 3 | As a regular user |
| 4 | 4 | I should be able to select a specific date |
| 5 | 5 | |
| 6 | - @kalibro_configuration_restart @kalibro_processor_restart @javascript | |
| 6 | + @wip @kalibro_configuration_restart @kalibro_processor_restart @javascript | |
| 7 | 7 | Scenario: With a specific date selected |
| 8 | 8 | Given I have a sample project |
| 9 | 9 | And I have a sample configuration with native metrics |
| 10 | 10 | And I have a sample repository within the sample project |
| 11 | 11 | And I start to process that repository |
| 12 | - And I wait for "60" seconds | |
| 13 | 12 | And I wait up for a ready processing |
| 13 | + And I wait for "60" seconds | |
| 14 | 14 | And I start to process that repository |
| 15 | 15 | And I wait up for the last processing to get ready |
| 16 | 16 | When I visit the repository show page |
| ... | ... | @@ -19,10 +19,10 @@ Feature: Date Select |
| 19 | 19 | And I set the select field "month" as "1" |
| 20 | 20 | And I set the select field "year" as "2013" |
| 21 | 21 | And I press the Search button |
| 22 | - And I get the Creation date information as "before" | |
| 22 | + And I get the Creation Date information as "before" | |
| 23 | 23 | When I set the select field "day" as "1" |
| 24 | 24 | And I set the select field "month" as "1" |
| 25 | 25 | And I set the select field "year" as "2020" |
| 26 | 26 | And I press the Search button |
| 27 | - And I get the Creation date information as "after" | |
| 27 | + And I get the Creation Date information as "after" | |
| 28 | 28 | Then "before" should be lesser than "after" | ... | ... |
features/repository/show/repository_info.feature
| ... | ... | @@ -13,7 +13,7 @@ Feature: Show Repository |
| 13 | 13 | When I visit the repository show page |
| 14 | 14 | Then I should see "Address" |
| 15 | 15 | And I should see "Configuration" |
| 16 | - And I should see "Periodicity" | |
| 16 | + And I should see "Period" | |
| 17 | 17 | And I should see "Type" |
| 18 | 18 | And I should see "Description" |
| 19 | 19 | And I should see "License" |
| ... | ... | @@ -31,7 +31,7 @@ Feature: Show Repository |
| 31 | 31 | When I visit the repository show page |
| 32 | 32 | Then I should see the sample repository name |
| 33 | 33 | And I should see "State" |
| 34 | - And I should see "Creation date" | |
| 34 | + And I should see "Creation Date" | |
| 35 | 35 | And I should see "PREPARING time" |
| 36 | 36 | And I should see "COLLECTING time" |
| 37 | 37 | And I should see "BUILDING time" |
| ... | ... | @@ -64,7 +64,7 @@ Feature: Show Repository |
| 64 | 64 | And I should see "Address" |
| 65 | 65 | And I should see "Configuration" |
| 66 | 66 | And I should see "State" |
| 67 | - And I should see "Creation date" | |
| 67 | + And I should see "Creation Date" | |
| 68 | 68 | When I click the "Metric Results" h3 |
| 69 | 69 | Then I should see "Loading data. Please, wait." |
| 70 | 70 | When I click the "Modules Tree" h3 | ... | ... |
features/step_definitions/repository_steps.rb
| ... | ... | @@ -113,9 +113,10 @@ When(/^I wait up for the ajax request$/) do |
| 113 | 113 | end |
| 114 | 114 | end |
| 115 | 115 | |
| 116 | -When(/^I get the Creation date information as "(.*?)"$/) do |variable| | |
| 117 | - val = page.find('p', text: 'Creation date').text.match(/^Creation date:(.*)$/).captures.first | |
| 118 | - eval ("@#{variable} = '#{val}'") | |
| 116 | +When(/^I get the Creation Date information as "(.*?)"$/) do |variable| | |
| 117 | + p page.find('p', text: 'Creation Date').text.match(/^Creation Date:(.*)$/).captures | |
| 118 | + val = page.find('p', text: 'Creation Date').text.match(/^Creation Date:(.*)$/).captures.first | |
| 119 | + eval ("@#{variable} = DateTime.parse('#{val}')") | |
| 119 | 120 | end |
| 120 | 121 | |
| 121 | 122 | Then(/^I should see the sample repository name$/) do |
| ... | ... | @@ -172,6 +173,9 @@ Then(/^"(.*?)" should be lesser than "(.*?)"$/) do |arg1, arg2| |
| 172 | 173 | v1 = eval "@#{arg1}" |
| 173 | 174 | v2 = eval "@#{arg2}" |
| 174 | 175 | |
| 176 | + p v1 | |
| 177 | + p v2 | |
| 178 | + | |
| 175 | 179 | expect(v1 < v2).to be_truthy |
| 176 | 180 | end |
| 177 | 181 | ... | ... |