Ensure validations are called when updating attributes in test

This commit is contained in:
Matt-Yorkley
2020-05-07 19:37:43 +02:00
parent 86bfd1bebb
commit 5518ffa856

View File

@@ -45,10 +45,8 @@ feature "Darkswarm data caching", js: true, caching: true do
expect(page).to have_content property.presentation
end
taxon.name = "Changed Taxon"
taxon.save
property.presentation = "Changed Property"
property.save
taxon.update_attributes!(name: "Changed Taxon")
property.update_attributes!(presentation: "Changed Property")
# Clear timed shops cache so we can test uncached supplied properties
clear_shops_cache