test/test_pulls.rb in mergem-0.0.2 vs test/test_pulls.rb in mergem-0.0.3

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (c) 2022 Yegor Bugayenko +# Copyright (c) 2022-2023 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -23,18 +23,18 @@ require 'loog' require_relative '../lib/mergem/pulls' # Test for Pulls. # Author:: Yegor Bugayenko (yegor256@gmail.com) -# Copyright:: Copyright (c) 2022 Yegor Bugayenko +# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko # License:: MIT class TestPulls < Minitest::Test def test_real api = Octokit::Client.new - m = Mergem::Pulls.new(api, Loog::VERBOSE, ['yegor256/blog']) + m = Mergem::Pulls.new(api, Loog::VERBOSE, 'yegor256/blog') ms = [] - total = m.each do |repo, pr| - ms << "#{repo}##{pr}" + total = m.each do |pr| + ms << "##{pr}" end assert(!ms.empty?) assert_equal(total, ms.count) p ms rescue Octokit::TooManyRequests => e