Enable Rubocop RSpec/ExpectActual (#23720)

This commit is contained in:
Nick Schonning authored and GitHub committed 2023-02-20 05:00:59 +01:00
1 parent 38a1d8bb85
commit 4ea1e0fceb
2 files changed
+2 -7

No files matched your search

@@ -26,8 +26,9 @@ describe WellKnown::NodeInfoController, type: :controller do
expect(response.media_type).to eq 'application/json'
json = body_as_json
foo = { 'foo' => 0 }
expect({ 'foo' => 0 }).to_not match_json_schema('nodeinfo_2.0')
expect(foo).to_not match_json_schema('nodeinfo_2.0')
expect(json).to match_json_schema('nodeinfo_2.0')
expect(json[:version]).to eq '2.0'
expect(json[:usage]).to be_a Hash