From c45efc6eff92afeb5f6f5d959573b7b724efc988 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Mon, 23 Jan 2023 11:49:04 -0800 Subject: [PATCH] rubocop --autocorrect --disable-uncorrectable --- Library/Homebrew/test/download_strategies/git_spec.rb | 2 +- .../helper/spec/shared_context/integration_test.rb | 2 +- Library/Homebrew/test/utils/git_spec.rb | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Library/Homebrew/test/download_strategies/git_spec.rb b/Library/Homebrew/test/download_strategies/git_spec.rb index eb7010669a..766bb51b29 100644 --- a/Library/Homebrew/test/download_strategies/git_spec.rb +++ b/Library/Homebrew/test/download_strategies/git_spec.rb @@ -18,7 +18,7 @@ describe GitDownloadStrategy do def git_commit_all system "git", "add", "--all" - system "git", "commit", "-m", "commit number #{@commit_id}" + system "git", "commit", "-m", "commit number #{@commit_id}" # rubocop:todo RSpec/InstanceVariable @commit_id += 1 end diff --git a/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb b/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb index 441d902ee8..17c72d923b 100644 --- a/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb +++ b/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb @@ -119,7 +119,7 @@ RSpec.shared_context "integration test" do # rubocop:disable RSpec/ContextWordin end Bundler.with_unbundled_env do - stdout, stderr, status = Open3.capture3(env, *@ruby_args, *args) + stdout, stderr, status = Open3.capture3(env, *@ruby_args, *args) # rubocop:todo RSpec/InstanceVariable $stdout.print stdout $stderr.print stderr status diff --git a/Library/Homebrew/test/utils/git_spec.rb b/Library/Homebrew/test/utils/git_spec.rb index 58ec7c975f..77883142b0 100644 --- a/Library/Homebrew/test/utils/git_spec.rb +++ b/Library/Homebrew/test/utils/git_spec.rb @@ -45,12 +45,12 @@ describe Utils::Git do end let(:file) { "README.md" } - let(:file_hash1) { @h1[0..6] } - let(:file_hash2) { @h2[0..6] } + let(:file_hash1) { @h1[0..6] } # rubocop:todo RSpec/InstanceVariable + let(:file_hash2) { @h2[0..6] } # rubocop:todo RSpec/InstanceVariable let(:files) { ["README.md", "LICENSE.txt"] } - let(:files_hash1) { [@h3[0..6], ["LICENSE.txt"]] } - let(:files_hash2) { [@h2[0..6], ["README.md"]] } - let(:cherry_pick_commit) { @cherry_pick_commit[0..6] } + let(:files_hash1) { [@h3[0..6], ["LICENSE.txt"]] } # rubocop:todo RSpec/InstanceVariable + let(:files_hash2) { [@h2[0..6], ["README.md"]] } # rubocop:todo RSpec/InstanceVariable + let(:cherry_pick_commit) { @cherry_pick_commit[0..6] } # rubocop:todo RSpec/InstanceVariable describe "#cherry_pick!" do it "can cherry pick a commit" do