require "test_helper" class DashboardControllerTest < ActionDispatch::IntegrationTest test "options returns JSON" do get "/dashboard/options", params: { table: 'Joint', pluck_column: 'Joint' } assert_response :success assert_equal "application/json", response.media_type end end