Skip to content

Commit

Permalink
Fix some typos (#3021)
Browse files Browse the repository at this point in the history
* Fix some typos
  • Loading branch information
MicBruz committed Mar 14, 2023
1 parent cb1c8f1 commit 870d12d
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Lint/LiteralInInterpolation:
Lint/NonLocalExitFromIterator:
Enabled: false

# We don't care about single vs double qoutes.
# We don't care about single vs double quotes.
Style/StringLiteralsInInterpolation:
Enabled: false

Expand Down
4 changes: 2 additions & 2 deletions .rubocop_rspec_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Metrics/CyclomaticComplexity:

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

Expand Down Expand Up @@ -104,7 +104,7 @@ Style/SignalException:
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space

# We don't care about single vs double qoutes.
# We don't care about single vs double quotes.
Style/StringLiterals:
Enabled: false

Expand Down
2 changes: 1 addition & 1 deletion DEV-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Or ...
## Customize the dev environment

The Gemfile includes the gems you'll need to be able to run specs. If you want
to customize your dev enviroment with additional tools like guard or
to customize your dev environment with additional tools like guard or
ruby-debug, add any additional gem declarations to Gemfile-custom (see
Gemfile-custom.sample for some examples).
2 changes: 1 addition & 1 deletion benchmarks/flat_map_vs_inject.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def flat_map_using_block(array, &block)
Surprisingly, `flat_map(&block)` appears to be faster than
`flat_map { yield }` in spite of the fact that our array here
is smaller than the break-even point of 20-25 measured in the
`capture_block_vs_yield.rb` benchmark. In fact, the forwaded-block
`capture_block_vs_yield.rb` benchmark. In fact, the forwarded-block
version remains faster in my benchmarks here no matter how small
I shrink the `words` array. I'm not sure why!

Expand Down
2 changes: 1 addition & 1 deletion lib/rspec/core/reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def initialize(configuration)
# Registers a listener to a list of notifications. The reporter will send
# notification of events to all registered listeners.
#
# @param listener [Object] An obect that wishes to be notified of reporter
# @param listener [Object] An object that wishes to be notified of reporter
# events
# @param notifications [Array] Array of symbols represents the events a
# listener wishes to subscribe too
Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/core/configuration_options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
expect(parse_options("--drb", "--no-drb")).to include(:drb => false)
end

it "gets overriden by a subsquent drb => true" do
it "gets overridden by a subsequent drb => true" do
expect(parse_options("--no-drb", "--drb")).to include(:drb => true)
end
end
Expand Down
6 changes: 3 additions & 3 deletions spec/rspec/core/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module RSpec::Core
end
end

context "when string represeting an integer number" do
context "when string representing an integer number" do
it 'is set to number' do
config.fail_fast = '5'
expect(config.fail_fast).to eq 5
Expand Down Expand Up @@ -1793,7 +1793,7 @@ def metadata_hash(*args)
expect(config.full_backtrace?).to eq true
end

it 'returns false when backtrace patterns isnt empty' do
it "returns false when backtrace patterns are not empty" do
config.backtrace_exclusion_patterns = [:lib]
expect(config.full_backtrace?).to eq false
end
Expand Down Expand Up @@ -2377,7 +2377,7 @@ def metadata_hash(*args)
end
end

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

class << ExampleGroup
Expand Down
4 changes: 2 additions & 2 deletions spec/rspec/core/filter_manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -414,13 +414,13 @@ def add_filter(options)
expect(description).to eq({ :foo => :bar }.inspect)
end

it 'includes an overriden :if filter' do
it 'includes an overridden :if filter' do
allow(RSpec).to receive(:deprecate)
filter_manager.exclude :if => :custom_filter
expect(description).to eq({ :if => :custom_filter }.inspect)
end

it 'includes an overriden :unless filter' do
it 'includes an overridden :unless filter' do
allow(RSpec).to receive(:deprecate)
filter_manager.exclude :unless => :custom_filter
expect(description).to eq({ :unless => :custom_filter }.inspect)
Expand Down
6 changes: 3 additions & 3 deletions spec/rspec/core/memoized_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def subject_value_for(describe_arg, &block)
end
end

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

RSpec.describe(Array) do
Expand Down Expand Up @@ -161,7 +161,7 @@ def working_with?(double)
expect(subject_value).to eq([4, 5, 6])
end

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

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

RSpec.describe do
Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/core/metadata_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ def value_for(*args)
end
end

context "an an example metadata hash" do
context "on an example metadata hash" do
it 'returns the described_class' do
meta = nil

Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/core/pending_example_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
expect(example).to be_pending_with('No reason given')
end

it "passes if a mock expectation is not satisifed" do
it "passes if a mock expectation is not satisfied" do
group = RSpec.describe('group') do
example "example", :pending => "because" do
expect(RSpec).to receive(:a_message_in_a_bottle)
Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/core/reporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module RSpec::Core
reporter.start 3, (start_time + 5)
end

it 'notifies the formatter of the seed used before notifing of start' do
it 'notifies the formatter of the seed used before notifying of start' do
formatter = double("formatter")
reporter.register_listener formatter, :seed
reporter.register_listener formatter, :start
Expand Down
2 changes: 1 addition & 1 deletion spec/support/aruba_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def require_relative(relative_arg)

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

# This was the orginal:
# This was the original:
# ::Kernel.require absolute_feature
::Kernel.send(:require, absolute_feature)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/support/helper_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def unindent(s)
end

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

0 comments on commit 870d12d

Please sign in to comment.