Adapt specs to new translation interface

As translatable translations already exists in these specs it has more
sense to me to use select_language intead of adding an already existing
language. Anyway both versions behaves the same and specs pass.
This commit is contained in:
Senén Rodero Rodríguez
2019-05-31 20:14:09 +02:00
parent f7417d6479
commit faed5857c3

View File

@@ -72,9 +72,9 @@ shared_examples "edit_translatable" do |factory_name, path_name, input_fields, t
translatable.update(attributes)
visit path
select "English", from: :translation_locale
select "English", from: :select_language
click_link "Remove language"
select "Español", from: :translation_locale
select "Español", from: :select_language
click_link "Remove language"
click_button update_button_text
@@ -91,9 +91,9 @@ shared_examples "edit_translatable" do |factory_name, path_name, input_fields, t
translatable.update(attributes)
visit path
select "English", from: :translation_locale
select "English", from: :select_language
click_link "Remove language"
select "Español", from: :translation_locale
select "Español", from: :select_language
click_link "Remove language"
click_button update_button_text
visit budgets_path
@@ -111,9 +111,9 @@ shared_examples "edit_translatable" do |factory_name, path_name, input_fields, t
translatable.update(attributes)
visit path
select "English", from: :translation_locale
select "English", from: :select_language
click_link "Remove language"
select "Español", from: :translation_locale
select "Español", from: :select_language
click_link "Remove language"
click_button update_button_text
visit polls_path