Mostly working state
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
require "test_helper"
|
||||
|
||||
class DashboardControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user