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