```ruby
require 'test_helper'

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

Make test more explicit with exact path
user
```ruby
require 'test_helper'

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