about summary refs log tree commit diff
path: root/spec/controllers/well_known
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-19 23:00:59 -0500
committerGitHub <noreply@github.com>2023-02-20 05:00:59 +0100
commit4ea1e0fceb0c0c5fee014a99f81f8f13a16f6dde (patch)
tree658fb7f94bae41941b0a2cc0774bbdff83c2560d /spec/controllers/well_known
parent38a1d8bb85da6c7a52a3bde28af368b8d2104d02 (diff)
Enable Rubocop RSpec/ExpectActual (#23720)
Diffstat (limited to 'spec/controllers/well_known')
-rw-r--r--spec/controllers/well_known/nodeinfo_controller_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/controllers/well_known/nodeinfo_controller_spec.rb b/spec/controllers/well_known/nodeinfo_controller_spec.rb
index e9436cd26..0cadc5435 100644
--- a/spec/controllers/well_known/nodeinfo_controller_spec.rb
+++ b/spec/controllers/well_known/nodeinfo_controller_spec.rb
@@ -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