diff --git a/Library/Homebrew/test/utils/git_spec.rb b/Library/Homebrew/test/utils/git_spec.rb index 1b733e4bf6..51d0ed9e8a 100644 --- a/Library/Homebrew/test/utils/git_spec.rb +++ b/Library/Homebrew/test/utils/git_spec.rb @@ -45,12 +45,14 @@ describe Utils::Git do end let(:file) { "README.md" } - let(:file_hash1) { @h1[0..6] } # rubocop:disable RSpec/InstanceVariable - let(:file_hash2) { @h2[0..6] } # rubocop:disable RSpec/InstanceVariable + # rubocop:disable RSpec/InstanceVariable + let(:file_hash1) { @h1[0..6] } + let(:file_hash2) { @h2[0..6] } let(:files) { ["README.md", "LICENSE.txt"] } - let(:files_hash1) { [@h3[0..6], ["LICENSE.txt"]] } # rubocop:disable RSpec/InstanceVariable - let(:files_hash2) { [@h2[0..6], ["README.md"]] } # rubocop:disable RSpec/InstanceVariable - let(:cherry_pick_commit) { @cherry_pick_commit[0..6] } # rubocop:disable RSpec/InstanceVariable + 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] } + # rubocop:enable RSpec/InstanceVariable describe "#cherry_pick!" do it "can cherry pick a commit" do