Keep invalid translation params through requests

We were reloading the values from the database and ignoring the
parameters sent by the browser.
This commit is contained in:
Javi Martín
2018-10-08 11:13:27 +02:00
parent 5cdda12902
commit 1d2979cd57
2 changed files with 17 additions and 2 deletions

View File

@@ -95,7 +95,9 @@ shared_examples "translatable" do |factory_name, path_name, fields|
expect(page).to have_css "#error_explanation"
# TODO: check the field is now blank.
click_link "Español"
expect(page).to have_field(field_for(field, :es), with: "")
end
scenario "Remove a translation", :js do