Skip to content

Commit

Permalink
Suppress 'Warn when expectation is set on nil'
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyprivett committed Jan 26, 2022
1 parent c4f9a72 commit 7e807a5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e807a5

Please sign in to comment.