Skip to content

Commit

Permalink
add some GitHub App tests that use VCR
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Nov 29, 2024
1 parent 628dbde commit 7e0230c
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/lib/issue_db/utils/github_app_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,10 @@
github_app = GitHubApp.new
expect { github_app.rate_limit }.to raise_error(StandardError, /401 - A JSON web token could not be decoded/)
end

it "successfully authenticates with the GitHub App" do
github_app = GitHubApp.new
expect(github_app.rate_limit.remaining).to eq(5000)
end
end
end

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e0230c

Please sign in to comment.