require 'test_helper'

class MapsControllerTest < ActionDispatch::IntegrationTest
  test "loads index JSON" do
    get maps_path, params: { format: :json }
    assert_response :success
  end
end

require 'test_helper'

class MapsControllerTest < ActionDispatch::IntegrationTest
  test "loads index JSON" do
    get "/api/maps"
    assert_response :success
  end
end

Make test more explicit with exact path
Make test more explicit with exact path
