X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/98bfaace9aeba7fb387596cc16b2e661506173c6..8cf77a2f360266787360da369fb5d701d83f842f:/test/controllers/api/user_blocks_controller_test.rb diff --git a/test/controllers/api/user_blocks_controller_test.rb b/test/controllers/api/user_blocks_controller_test.rb index c8bdc1d57..169338811 100644 --- a/test/controllers/api/user_blocks_controller_test.rb +++ b/test/controllers/api/user_blocks_controller_test.rb @@ -16,11 +16,11 @@ module Api def test_show block = create(:user_block) - get api_user_block_path(:id => block) + get api_user_block_path(block) assert_response :success assert_select "user_block[id='#{block.id}']", 1 - get api_user_block_path(:id => block, :format => "json") + get api_user_block_path(block, :format => "json") assert_response :success js = ActiveSupport::JSON.decode(@response.body) assert_not_nil js @@ -28,7 +28,7 @@ module Api end def test_show_not_found - get api_user_block_path(:id => 123) + get api_user_block_path(123) assert_response :not_found assert_equal "text/plain", @response.media_type end