Fix typos in translatable spec

We want to create a new investment for a budget, and not for another
investment.
This commit is contained in:
Javi Martín
2019-10-09 22:22:44 +02:00
parent dadc3d174c
commit 2f569002cf

View File

@@ -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"