Commit 673a092

mo khan <mo@mokhan.ca>
2021-07-13 03:05:44
test: simulate receiving a new install callback
1 parent c928dec
Changed files (2)
app
views
test
app/views/githubs/show.html.erb
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