From 7e807a5541f5b7ed77b7f9d924c582329ccf1b63 Mon Sep 17 00:00:00 2001 From: Toby Privett Date: Wed, 1 Dec 2021 11:43:04 +0000 Subject: [PATCH] Suppress 'Warn when expectation is set on nil' --- .../models/waste_carriers_engine/transient_registration_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/models/waste_carriers_engine/transient_registration_spec.rb b/spec/models/waste_carriers_engine/transient_registration_spec.rb index 3f807dbbc..7ab415a27 100644 --- a/spec/models/waste_carriers_engine/transient_registration_spec.rb +++ b/spec/models/waste_carriers_engine/transient_registration_spec.rb @@ -8,6 +8,8 @@ module WasteCarriersEngine describe "#set_metadata_route" do it "updates the transient registration's metadata route" do + allow_message_expectations_on_nil + metadata_route = double(:metadata_route) expect(Rails.configuration).to receive(:metadata_route).and_return(metadata_route)