From 5518ffa85684ef054b7eed695720df11df30b56b Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 7 May 2020 19:37:43 +0200 Subject: [PATCH] Ensure validations are called when updating attributes in test --- spec/features/consumer/caching/darkwarm_caching_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/features/consumer/caching/darkwarm_caching_spec.rb b/spec/features/consumer/caching/darkwarm_caching_spec.rb index e1162e2961..38fdc05f46 100644 --- a/spec/features/consumer/caching/darkwarm_caching_spec.rb +++ b/spec/features/consumer/caching/darkwarm_caching_spec.rb @@ -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