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 <top (required)>'.
This commit is contained in:
Georg Gadinger 2023-01-06 13:53:22 +01:00
parent b6121b16f0
commit 5c4ab05d4e
1 changed files with 1 additions and 1 deletions

View File

@ -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