From 2f569002cf85d88706db291224e60ff7d52af88b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 9 Oct 2019 22:22:44 +0200 Subject: [PATCH] Fix typos in translatable spec We want to create a new investment for a budget, and not for another investment. --- spec/features/translatable_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/translatable_spec.rb b/spec/features/translatable_spec.rb index 710006f5b..a750947fa 100644 --- a/spec/features/translatable_spec.rb +++ b/spec/features/translatable_spec.rb @@ -124,7 +124,7 @@ describe "Public area translatable records" do end scenario "Select a locale and add it to the form" do - visit new_budget_investment_path(create(:budget_investment)) + visit new_budget_investment_path(create(:budget)) select "Français", from: :add_language @@ -132,7 +132,7 @@ describe "Public area translatable records" do end scenario "Remove a translation" do - visit new_budget_investment_path(create(:budget_investment)) + visit new_budget_investment_path(create(:budget)) expect(find("#select_language").value).to eq "en" click_link "Remove language"