From 3593eb04cd336bb9f42af26af703e12ad33fdbf6 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 15 Dec 2022 15:29:17 +0000 Subject: [PATCH] refactor: remove redundant context --- spec/models/location_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/location_spec.rb b/spec/models/location_spec.rb index 184f9f43e..51509d765 100644 --- a/spec/models/location_spec.rb +++ b/spec/models/location_spec.rb @@ -57,7 +57,7 @@ RSpec.describe Location, type: :model do it "does not add an error when the name is invalid" do location.name = nil - location.valid?(:name) + location.valid? expect(location.errors.count).to eq(0) end end