main
1require "test_helper"
2
3class GithubsControllerTest < ActionDispatch::IntegrationTest
4 test "accepts a new app installation webhook" do
5 post '/github', params: JSON.parse(file_fixture("webhooks/app.json").read)
6
7 assert_response :no_content
8 end
9
10 test "accepts a new installaction callback" do
11 get '/github', params: { code: 'e025a53883802aeb399c', installation_id: '18251928', setup_action: 'install' }
12
13 assert_response :ok
14 end
15end