summaryrefslogtreecommitdiff
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
parentc928decf86664cb8b9598a57bc22ae27fe2d34fc (diff)
test: simulate receiving a new install callback
-rw-r--r--app/views/githubs/show.html.erb0
-rw-r--r--test/controllers/githubs_controller_test.rb6
2 files changed, 6 insertions, 0 deletions
diff --git a/app/views/githubs/show.html.erb b/app/views/githubs/show.html.erb
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/views/githubs/show.html.erb
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