From 24c857c08ac207f3b2814df9314fd3c9a7687c1a Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 22 Jul 2024 17:03:45 +0200 Subject: Fix rubocop complain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- test/controllers/shared_searches_controller_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/controllers/shared_searches_controller_test.rb b/test/controllers/shared_searches_controller_test.rb index e432316..813a619 100644 --- a/test/controllers/shared_searches_controller_test.rb +++ b/test/controllers/shared_searches_controller_test.rb @@ -6,11 +6,13 @@ class SharedSearchesControllerTest < ActionDispatch::IntegrationTest test 'does not allow to show searches which have not been shared' do get search_shared_url(searches(:search1).id) - assert_equal @response.code.to_i, 404 + + assert_equal 404, @response.code.to_i searches(:search1).update!(shared: true) get search_shared_url(searches(:search1).id) - assert_equal @response.code.to_i, 200 + + assert_equal 200, @response.code.to_i end end -- cgit v1.2.3