From 5c4ab05d4e207e8a61a9e0496f38d6d4b5a9ca78 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Fri, 6 Jan 2023 13:53:22 +0100 Subject: [PATCH] get rid of RSpec deprecation warning Using `should_not` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` with `config.expect_with(:rspec) { |c| c.syntax = :should }` instead. Called from /Users/foxy/src/Retrospring/retrospring/spec/controllers/well_known/node_info_controller_spec.rb:84:in `block (4 levels) in '. --- spec/controllers/well_known/node_info_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/well_known/node_info_controller_spec.rb b/spec/controllers/well_known/node_info_controller_spec.rb index e5e8a009..ad6a8dce 100644 --- a/spec/controllers/well_known/node_info_controller_spec.rb +++ b/spec/controllers/well_known/node_info_controller_spec.rb @@ -81,7 +81,7 @@ describe WellKnown::NodeInfoController do it "includes Twitter in outbound services" do subject parsed = JSON.parse(response.body) - parsed.dig("services", "outbound").should_not include("twitter") + expect(parsed.dig("services", "outbound")).to_not include("twitter") end end