require "test_helper" class GithubsControllerTest < ActionDispatch::IntegrationTest test "accepts a new app installation webhook" do post '/github', params: JSON.parse(file_fixture("webhooks/app.json").read) assert_response :no_content end test "accepts a new installaction callback" do get '/github', params: { code: 'e025a53883802aeb399c', installation_id: '18251928', setup_action: 'install' } assert_response :ok end end