dev-cmd/update-maintainers: add tests

This commit is contained in:
nandahkrishna 2021-02-04 23:48:03 +05:30
parent 7bb059b523
commit 0474fe6093
No known key found for this signature in database
GPG Key ID: 067E5FCD58ADF3AA
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# typed: false
# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
describe "brew update-maintainers" do
it_behaves_like "parseable arguments"
end

View File

@ -50,6 +50,13 @@ describe GitHub do
end
end
describe "::public_member_usernames", :needs_network do
it "gets the usernames of all publicly visible members of the organisation" do
response = described_class.public_member_usernames("Homebrew")
expect(response).to be_a(Array)
end
end
describe "::sponsors_by_tier", :needs_network do
it "errors on an unauthenticated token" do
expect {