Skip to content

Commit

Permalink
Fix rubocop complain
Browse files Browse the repository at this point in the history
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
  • Loading branch information
mssola committed Jul 22, 2024
1 parent 8d95460 commit 24c857c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/controllers/shared_searches_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 24c857c

Please sign in to comment.