Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 870d12d

Browse files
authoredMar 14, 2023
Fix some typos (#3021)
* Fix some typos
1 parent cb1c8f1 commit 870d12d

14 files changed

+20
-20
lines changed
 

‎.rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Lint/LiteralInInterpolation:
5050
Lint/NonLocalExitFromIterator:
5151
Enabled: false
5252

53-
# We don't care about single vs double qoutes.
53+
# We don't care about single vs double quotes.
5454
Style/StringLiteralsInInterpolation:
5555
Enabled: false
5656

‎.rubocop_rspec_base.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Metrics/CyclomaticComplexity:
3232

3333
# We use YARD to enforce documentation. It works better than rubocop's
3434
# enforcement...rubocop complains about the places we re-open
35-
# `RSpec::Expectations` and `RSpec::Matchers` w/o having doc commments.
35+
# `RSpec::Expectations` and `RSpec::Matchers` w/o having doc comments.
3636
Style/Documentation:
3737
Enabled: false
3838

@@ -104,7 +104,7 @@ Style/SignalException:
104104
Layout/SpaceAroundEqualsInParameterDefault:
105105
EnforcedStyle: no_space
106106

107-
# We don't care about single vs double qoutes.
107+
# We don't care about single vs double quotes.
108108
Style/StringLiterals:
109109
Enabled: false
110110

‎DEV-README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ Or ...
2323
## Customize the dev environment
2424

2525
The Gemfile includes the gems you'll need to be able to run specs. If you want
26-
to customize your dev enviroment with additional tools like guard or
26+
to customize your dev environment with additional tools like guard or
2727
ruby-debug, add any additional gem declarations to Gemfile-custom (see
2828
Gemfile-custom.sample for some examples).

‎benchmarks/flat_map_vs_inject.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def flat_map_using_block(array, &block)
3737
Surprisingly, `flat_map(&block)` appears to be faster than
3838
`flat_map { yield }` in spite of the fact that our array here
3939
is smaller than the break-even point of 20-25 measured in the
40-
`capture_block_vs_yield.rb` benchmark. In fact, the forwaded-block
40+
`capture_block_vs_yield.rb` benchmark. In fact, the forwarded-block
4141
version remains faster in my benchmarks here no matter how small
4242
I shrink the `words` array. I'm not sure why!
4343

‎lib/rspec/core/reporter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def initialize(configuration)
3030
# Registers a listener to a list of notifications. The reporter will send
3131
# notification of events to all registered listeners.
3232
#
33-
# @param listener [Object] An obect that wishes to be notified of reporter
33+
# @param listener [Object] An object that wishes to be notified of reporter
3434
# events
3535
# @param notifications [Array] Array of symbols represents the events a
3636
# listener wishes to subscribe too

‎spec/rspec/core/configuration_options_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
expect(parse_options("--drb", "--no-drb")).to include(:drb => false)
369369
end
370370

371-
it "gets overriden by a subsquent drb => true" do
371+
it "gets overridden by a subsequent drb => true" do
372372
expect(parse_options("--no-drb", "--drb")).to include(:drb => true)
373373
end
374374
end

‎spec/rspec/core/configuration_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module RSpec::Core
9191
end
9292
end
9393

94-
context "when string represeting an integer number" do
94+
context "when string representing an integer number" do
9595
it 'is set to number' do
9696
config.fail_fast = '5'
9797
expect(config.fail_fast).to eq 5
@@ -1793,7 +1793,7 @@ def metadata_hash(*args)
17931793
expect(config.full_backtrace?).to eq true
17941794
end
17951795

1796-
it 'returns false when backtrace patterns isnt empty' do
1796+
it "returns false when backtrace patterns are not empty" do
17971797
config.backtrace_exclusion_patterns = [:lib]
17981798
expect(config.full_backtrace?).to eq false
17991799
end
@@ -2377,7 +2377,7 @@ def metadata_hash(*args)
23772377
end
23782378
end
23792379

2380-
it 'overrides existing definitions of the aliased method name without issueing warnings' do
2380+
it 'overrides existing definitions of the aliased method name without issuing warnings' do
23812381
config.expose_dsl_globally = true
23822382

23832383
class << ExampleGroup

‎spec/rspec/core/filter_manager_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,13 @@ def add_filter(options)
414414
expect(description).to eq({ :foo => :bar }.inspect)
415415
end
416416

417-
it 'includes an overriden :if filter' do
417+
it 'includes an overridden :if filter' do
418418
allow(RSpec).to receive(:deprecate)
419419
filter_manager.exclude :if => :custom_filter
420420
expect(description).to eq({ :if => :custom_filter }.inspect)
421421
end
422422

423-
it 'includes an overriden :unless filter' do
423+
it 'includes an overridden :unless filter' do
424424
allow(RSpec).to receive(:deprecate)
425425
filter_manager.exclude :unless => :custom_filter
426426
expect(description).to eq({ :unless => :custom_filter }.inspect)

‎spec/rspec/core/memoized_helpers_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def subject_value_for(describe_arg, &block)
6767
end
6868
end
6969

70-
it "can be overriden and super'd to from a nested group" do
70+
it "can be overridden and super'd to from a nested group" do
7171
outer_subject_value = inner_subject_value = nil
7272

7373
RSpec.describe(Array) do
@@ -161,7 +161,7 @@ def working_with?(double)
161161
expect(subject_value).to eq([4, 5, 6])
162162
end
163163

164-
it "can be overriden and super'd to from a nested group" do
164+
it "can be overridden and super'd to from a nested group" do
165165
subject_value = nil
166166
group.describe("Nested") do
167167
subject { super() + [:override] }
@@ -271,7 +271,7 @@ def working_with?(double)
271271
expect(subject_value).to eq(:inner)
272272
end
273273

274-
it 'is not overriden when an inner group defines a new method with the same name' do
274+
it 'is not overridden when an inner group defines a new method with the same name' do
275275
subject_value = nil
276276

277277
RSpec.describe do

‎spec/rspec/core/metadata_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ def value_for(*args)
868868
end
869869
end
870870

871-
context "an an example metadata hash" do
871+
context "on an example metadata hash" do
872872
it 'returns the described_class' do
873873
meta = nil
874874

‎spec/rspec/core/pending_example_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
expect(example).to be_pending_with('No reason given')
2323
end
2424

25-
it "passes if a mock expectation is not satisifed" do
25+
it "passes if a mock expectation is not satisfied" do
2626
group = RSpec.describe('group') do
2727
example "example", :pending => "because" do
2828
expect(RSpec).to receive(:a_message_in_a_bottle)

‎spec/rspec/core/reporter_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module RSpec::Core
5858
reporter.start 3, (start_time + 5)
5959
end
6060

61-
it 'notifies the formatter of the seed used before notifing of start' do
61+
it 'notifies the formatter of the seed used before notifying of start' do
6262
formatter = double("formatter")
6363
reporter.register_listener formatter, :seed
6464
reporter.register_listener formatter, :start

‎spec/support/aruba_support.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def require_relative(relative_arg)
1515

1616
absolute_feature = File.expand_path(relative_arg, File.dirname(File.realpath(file)))
1717

18-
# This was the orginal:
18+
# This was the original:
1919
# ::Kernel.require absolute_feature
2020
::Kernel.send(:require, absolute_feature)
2121
end

‎spec/support/helper_methods.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def unindent(s)
2222
end
2323

2424
# In Ruby 2.7 taint was removed and has no effect, whilst SAFE warns that it
25-
# has no effect and will become a normal varible in 3.0. Other engines do not
25+
# has no effect and will become a normal variable in 3.0. Other engines do not
2626
# implement SAFE.
2727
if RUBY_VERSION >= '2.7' || (defined?(RUBY_ENGINE) && RUBY_ENGINE != "ruby")
2828
def with_safe_set_to_level_that_triggers_security_errors

0 commit comments

Comments
 (0)