summaryrefslogtreecommitdiff
path: root/test/controllers
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2021-07-12 21:05:44 -0600
committermo khan <mo@mokhan.ca>2021-07-12 21:05:44 -0600
commit673a0926a54623f8e23f8914bd84157bed43fef8 (patch)
treec33bfcd71b9bac66ae7052de8d4728f59272281c /test/controllers
parentc928decf86664cb8b9598a57bc22ae27fe2d34fc (diff)
test: simulate receiving a new install callback
Diffstat (limited to 'test/controllers')
-rw-r--r--test/controllers/githubs_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/controllers/githubs_controller_test.rb b/test/controllers/githubs_controller_test.rb
index 4e367ba..31f2e1f 100644
--- a/test/controllers/githubs_controller_test.rb
+++ b/test/controllers/githubs_controller_test.rb
@@ -6,4 +6,10 @@ class GithubsControllerTest < ActionDispatch::IntegrationTest
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