Audit changes in investment translations

Note the user interface could certainly be improved, as it doesn't show
which languages have changed.
This commit is contained in:
Javi Martín
2019-11-03 12:58:44 +01:00
parent e0c2468bd2
commit 04cd3b460e
5 changed files with 11 additions and 8 deletions

View File

@@ -48,11 +48,9 @@ describe "Admin change log" do
expect(page).to have_content(budget_investment.heading.name)
expect(page).to have_content("There are not changes logged")
budget_investment.update!(title: "test")
visit admin_budget_budget_investments_path(budget_investment.budget)
click_link budget_investment.title
click_link "Edit"
fill_in "Title", with: "test"
click_button "Update"
expect(page).not_to have_content("There are not changes logged")
expect(page).to have_content("Change Log")