diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-07-22 17:03:45 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-07-22 17:03:45 +0200 |
| commit | 24c857c08ac207f3b2814df9314fd3c9a7687c1a (patch) | |
| tree | 2834f43343035442323c28c2ce74b2bbe5059e64 | |
| parent | 8d954606eaf3cf80f2e1374a475b18dcaf79eec0 (diff) | |
| download | operum-24c857c08ac207f3b2814df9314fd3c9a7687c1a.tar.gz operum-24c857c08ac207f3b2814df9314fd3c9a7687c1a.zip | |
Fix rubocop complain
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
| -rw-r--r-- | test/controllers/shared_searches_controller_test.rb | 6 |
1 files 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 |
