summaryrefslogtreecommitdiff
path: root/spec/bundler/quality_spec.rb
diff options
context:
space:
mode:
authorMartin Emde <martin.emde@gmail.com>2023-10-22 11:23:33 -0700
committergit <svn-admin@ruby-lang.org>2023-10-22 20:17:44 +0000
commit11468269486d855f606cff5d0fa848772bc5c0cd (patch)
treed77665247d43d0c88377a5ff37e5c3ab524c1dcc /spec/bundler/quality_spec.rb
parentb84e6fe93ee35111b592f9e10e30bc460a077d0b (diff)
[rubygems/rubygems] Fix spelling of extraneous
https://github.com/rubygems/rubygems/commit/af61829432
Diffstat (limited to 'spec/bundler/quality_spec.rb')
-rw-r--r--spec/bundler/quality_spec.rb8
1 files 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