blob: 31f2e1fa0f4e79905ac23faaa85734943d0d610c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
|