From 5e3a5d67d2cbf6f7cbe5cbf6c1df67433bf1ce3f Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 15 Dec 2022 15:28:37 +0000 Subject: [PATCH] test: update tests --- spec/models/location_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/location_spec.rb b/spec/models/location_spec.rb index d3f69415b..184f9f43e 100644 --- a/spec/models/location_spec.rb +++ b/spec/models/location_spec.rb @@ -55,10 +55,10 @@ RSpec.describe Location, type: :model do describe "#name" do let(:location) { FactoryBot.build(:location) } - it "does add an error when the name is invalid" do + it "does not add an error when the name is invalid" do location.name = nil location.valid?(:name) - expect(location.errors.count).to eq(1) + expect(location.errors.count).to eq(0) end end