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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user