Use update! instead of update_attributes!

It's what we use almost everywhere, and it's shorter.
This commit is contained in:
Javi Martín
2019-10-21 23:27:03 +02:00
parent 7ca55c44e0
commit 49c3402833
10 changed files with 93 additions and 93 deletions

View File

@@ -158,7 +158,7 @@ describe "Admin legislation questions" do
context "Special translation behaviour" do
before do
question.update_attributes(title_en: "Title in English", title_es: "Título en Español")
question.update!(title_en: "Title in English", title_es: "Título en Español")
end
scenario "Add translation for question option", :js do