From dbdbcd662adeb7b1c7ecb0d85dbc14da5edc7688 Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Sun, 20 Jan 2019 00:45:44 +0100 Subject: [PATCH] Remove extra check Sometimes when updating a resource you are not redirected to the same resource, you are maybe redirected to the parent resource and the translations can be different. This condition will be checked after visiting the edit_path again. --- spec/shared/features/translatable.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/shared/features/translatable.rb b/spec/shared/features/translatable.rb index 09c25a8fb..57b209efa 100644 --- a/spec/shared/features/translatable.rb +++ b/spec/shared/features/translatable.rb @@ -135,7 +135,6 @@ shared_examples "translatable" do |factory_name, path_name, input_fields, textar click_button update_button_text expect(page).not_to have_css "#error_explanation" - expect(page).not_to have_link "English" path = updated_path_for(translatable) visit path