Skip to content

Commit f8084dd

Browse files
authored
Merge pull request #2601 from ydah/fix_spelling
Fix some typos
2 parents 528ff01 + ed82041 commit f8084dd

File tree

13 files changed

+16
-16
lines changed

13 files changed

+16
-16
lines changed

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
version: "{build}"
55

6-
# This will build all PRs targetting matching branches.
6+
# This will build all PRs targeting matching branches.
77
# Without this, each PR builds twice -- once for the PR branch HEAD,
8-
# and once for the merge commit that github creates for each mergable PR.
8+
# and once for the merge commit that github creates for each mergeable PR.
99
branches:
1010
only:
1111
- main

benchmarks/before_block_capture_block_vs_yield.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def capture_block_and_call_n_times(n, &block)
5454
> a high constant cost, taking about 5x longer than a single `yield`
5555
> (even if the block is never used!).
5656
>
57-
> However, fowarding a captured block can be faster than using `yield`
57+
> However, forwarding a captured block can be faster than using `yield`
5858
> if the block is used many times (the breakeven point is at about 20-25
5959
> invocations), so it appears that he per-invocation cost of `yield`
6060
> is higher than that of a captured-and-forwarded block.
@@ -71,7 +71,7 @@ def capture_block_and_call_n_times(n, &block)
7171
> Surprisingly, `flat_map(&block)` appears to be faster than
7272
> `flat_map { yield }` in spite of the fact that our array here
7373
> is smaller than the break-even point of 20-25 measured in the
74-
> `capture_block_vs_yield.rb` benchmark. In fact, the forwaded-block
74+
> `capture_block_vs_yield.rb` benchmark. In fact, the forwarded-block
7575
> version remains faster in my benchmarks here no matter how small
7676
> I shrink the `words` array. I'm not sure why!
7777
>

example_app_generator/spec/support/default_preview_path

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ elsif defined?(::ActionMailer::Preview)
6969
end
7070

7171
# This will force the loading of ActionMailer settings to ensure we do not
72-
# accicentally set something we should not
72+
# accidentally set something we should not
7373
ActionMailer::Base.smtp_settings

features/matchers/have_stream_from_matcher.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Feature: have_stream_from matcher
44
The `have_stream_from` matcher is used to check if a channel has been subscribed to a given stream specified as a String.
55
If you use `stream_for` in you channel to subscribe to a model, use `have_stream_for` matcher instead.
66

7-
The `have_no_streams` matcher is used to check if a channe hasn't been subscribed to any stream.
7+
The `have_no_streams` matcher is used to check if a channel hasn't been subscribed to any stream.
88

99
It is available only in channel specs.
1010

lib/generators/rspec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require 'rspec/rails/feature_check'
33

44
# @private
5-
# Weirdly named generators namespace (should be `RSpec`) for compatability with
5+
# Weirdly named generators namespace (should be `RSpec`) for compatibility with
66
# rails loading.
77
module Rspec
88
# @private

lib/generators/rspec/install/templates/spec/rails_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# Remove this line to enable support for ActiveRecord
4949
config.use_active_record = false
5050
51-
# If you enable ActiveRecord support you should unncomment these lines,
51+
# If you enable ActiveRecord support you should uncomment these lines,
5252
# note if you'd prefer not to run each example within a transaction, you
5353
# should set use_transactional_fixtures to false.
5454
#

lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def pubsub_adapter
159159
def check_channel_presence
160160
return if @channel.present? && @channel.respond_to?(:channel_name)
161161

162-
error_msg = "Broadcasting channel can't be infered. Please, specify it with `from_channel`"
162+
error_msg = "Broadcasting channel can't be inferred. Please, specify it with `from_channel`"
163163
raise ArgumentError, error_msg
164164
end
165165
end

lib/rspec/rails/matchers/have_enqueued_mail.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def mail_job_message(job)
134134
end
135135

136136
# Ruby 3.1 changed how params were serialized on Rails 6.1
137-
# so we override the active job implementation and customise it here.
137+
# so we override the active job implementation and customize it here.
138138
def deserialize_arguments(job)
139139
args = super
140140

lib/rspec/rails/matchers/have_http_status.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def check_expected_status(test_response, expected)
305305

306306
private
307307

308-
# @return [String] formating the expected status and associated code(s)
308+
# @return [String] formatting the expected status and associated code(s)
309309
def type_message
310310
@type_message ||= (expected == :error ? "an error" : "a #{expected}") +
311311
" status code (#{type_codes})"

spec/rspec/rails/configuration_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
end
9494

9595
describe "`#render_views=`" do
96-
it "sets `render_views?` to the truthyness of the provided value" do
96+
it "sets `render_views?` to the truthiness of the provided value" do
9797
expect {
9898
config.render_views = :a_value
9999
}.to change { config.render_views? }.from(false).to(true)

spec/rspec/rails/matchers/active_job_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def self.name; "LoggingJob"; end
347347
}
348348
end
349349

350-
it "passess deserialized arguments to with block" do
350+
it "passes deserialized arguments to with block" do
351351
global_id_object = GlobalIdModel.new("42")
352352

353353
expect {
@@ -650,7 +650,7 @@ def self.name; "LoggingJob"; end
650650
}
651651
end
652652

653-
it "passess deserialized arguments to with block" do
653+
it "passes deserialized arguments to with block" do
654654
global_id_object = GlobalIdModel.new("42")
655655

656656
expect {

spec/rspec/rails/matchers/have_enqueued_mail_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def self.name; "NonMailerJob"; end
424424
)
425425
end
426426

427-
it "passes when given a global id serialised argument" do
427+
it "passes when given a global id serialized argument" do
428428
expect {
429429
UnifiedMailer.with(inquiry: GlobalIDArgument.new).test_email.deliver_later
430430
}.to have_enqueued_email(UnifiedMailer, :test_email)

spec/rspec/rails/view_rendering_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def example.controller
6060
end
6161
end
6262

63-
it 'propogates to examples in nested groups properly' do
63+
it 'propagates to examples in nested groups properly' do
6464
value = :unset
6565

6666
group.class_exec do

0 commit comments

Comments
 (0)