Commit 1b4f39a7f804aa67ee9a65ff96970b6fea3a346d
1 parent
458bbabe
Exists in
colab
and in
4 other branches
Fixed MetricConfiguration creation acceptance tests after locales cleanup
Signed off by: Diego Araújo <diegoamc90@gmail.com>
Showing
3 changed files
with
18 additions
and
7 deletions
Show diff stats
config/locales/views/metric_configurations/en.yml
1 | 1 | en: |
2 | + activemodel: | |
3 | + models: | |
4 | + metric_configuration: | |
5 | + one: "Metric Configuration" | |
6 | + other: "Metric Configurations" | |
7 | + attributes: | |
8 | + metric_configuration: | |
9 | + metric: "Metric" | |
10 | + weight: "Weight" | |
11 | + aggregation_form: "Aggregation Form" | |
12 | + reading_group_id: "Reading Group" | |
2 | 13 | weighted_average_metric_configurations_form: "It is used to calculate the weighted average of a" |
3 | 14 | statistical_result_metric_configurations_form: "It is the calculation of statistical results for higher" |
4 | 15 | modules_eg_metric_configurations_form: " modules (e.g., average lines of code of the classes inside a package)." | ... | ... |
config/locales/views/metric_configurations/pt.yml
... | ... | @@ -2,14 +2,14 @@ pt: |
2 | 2 | activemodel: |
3 | 3 | models: |
4 | 4 | metric_configuration: |
5 | - one: Configuração de Métrica | |
6 | - other: Configurações de Métricas | |
5 | + one: "Configuração de Métrica" | |
6 | + other: "Configurações de Métricas" | |
7 | 7 | attributes: |
8 | 8 | metric_configuration: |
9 | - metric: Métrica | |
10 | - weight: Peso | |
11 | - aggregation_form: Forma de Agregação | |
12 | - reading_group_id: Grupo de Leitura | |
9 | + metric: "Métrica" | |
10 | + weight: "Peso" | |
11 | + aggregation_form: "Forma de Agregação" | |
12 | + reading_group_id: "Grupo de Leitura" | |
13 | 13 | weighted_average_metric_configurations_form: "Ele é usado para calcular a média ponderada de um" |
14 | 14 | statistical_result_metric_configurations_form: "É o cálculo dos resultados estatísticos para maior" |
15 | 15 | modules_eg_metric_configurations_form: "módulos (por exemplo, as linhas médias de código das classes dentro de um pacote)." | ... | ... |
features/step_definitions/repository_steps.rb
... | ... | @@ -92,7 +92,7 @@ When(/^I click on the sample metric's name$/) do |
92 | 92 | end |
93 | 93 | |
94 | 94 | When(/^I set the select field "(.+)" as "(.+)"$/) do |field, text| |
95 | - select text, from: I18n.t(field.gsub(" ", "_").downcase) | |
95 | + select text, from: field | |
96 | 96 | end |
97 | 97 | |
98 | 98 | When(/^I visit the repository show page$/) do | ... | ... |