From 11468269486d855f606cff5d0fa848772bc5c0cd Mon Sep 17 00:00:00 2001 From: Martin Emde Date: Sun, 22 Oct 2023 11:23:33 -0700 Subject: [PATCH] [rubygems/rubygems] Fix spelling of extraneous https://github.com/rubygems/rubygems/commit/af61829432 --- spec/bundler/quality_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/bundler/quality_spec.rb b/spec/bundler/quality_spec.rb index a98815158e..ee911699b3 100644 --- a/spec/bundler/quality_spec.rb +++ b/spec/bundler/quality_spec.rb @@ -40,7 +40,7 @@ RSpec.describe "The library itself" do "#{filename} has spaces on the EOL on lines #{failing_lines.join(", ")}" end - def check_for_straneous_quotes(filename) + def check_for_extraneous_quotes(filename) return if File.expand_path(filename) == __FILE__ failing_lines = [] @@ -49,7 +49,7 @@ RSpec.describe "The library itself" do end return if failing_lines.empty? - "#{filename} has an straneous quote on lines #{failing_lines.join(", ")}" + "#{filename} has an extraneous quote on lines #{failing_lines.join(", ")}" end def check_for_expendable_words(filename) @@ -96,12 +96,12 @@ RSpec.describe "The library itself" do expect(error_messages.compact).to be_well_formed end - it "has no estraneous quotes" do + it "has no extraneous quotes" do exempt = /vendor|vcr_cassettes|LICENSE|rbreadline\.diff/ error_messages = [] tracked_files.each do |filename| next if filename&.match?(exempt) - error_messages << check_for_straneous_quotes(filename) + error_messages << check_for_extraneous_quotes(filename) end expect(error_messages.compact).to be_well_formed end