Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
- Use "success" instead of "succsess"
- Use "although" instead of "althought"
- Use "overwritten" instead of "overwriten"
- Use "checked" instead of "ckeced"
- Use "expectation" instead of "expectcation"
  • Loading branch information
ydah committed May 22, 2022
1 parent 17aded3 commit 55e21fb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/rubocop/rspec/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module RuboCop
module RSpec
# RuboCop RSpec specific extensions of RuboCop::AST::Node
module Node
# In various cops we want to regard const as literal althought it's not
# In various cops we want to regard const as literal although it's not
# strictly literal.
def recursive_literal_or_const?
case type
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cli/autocorrect_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
RUBY
end

it 'rubocop terminates with a succsess' do
it 'rubocop terminates with a success' do
expect(cli.run(['-A', '--only',
'RSpec/Capybara/CurrentPathExpectation,' \
'Style/TrailingCommaInArguments'])).to eq(0)
Expand Down
4 changes: 2 additions & 2 deletions spec/rubocop/cop/rspec/overwriting_setup_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

RSpec.describe RuboCop::Cop::RSpec::OverwritingSetup do
it 'registers an offense for overwriten `let`' do
it 'registers an offense for overwritten `let`' do
expect_offense(<<-RUBY)
RSpec.describe User do
let(:a) { a }
Expand All @@ -11,7 +11,7 @@
RUBY
end

it 'registers an offense for overwriten `subject`' do
it 'registers an offense for overwritten `subject`' do
expect_offense(<<-RUBY)
RSpec.describe User do
subject(:a) { a }
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cop/rspec/predicate_matcher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
RUBY
end

it 'accepts a predicate method that is not ckeced true/false' do
it 'accepts a predicate method that is not checked true/false' do
expect_no_offenses(<<-RUBY)
expect(foo.something?).to eq "something"
expect(foo.has_something?).to eq "something"
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cop/rspec/subject_stub_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
RUBY
end

it 'flags one-line expectcation syntax' do
it 'flags one-line expectation syntax' do
expect_offense(<<-RUBY)
describe Foo do
subject(:foo) { described_class.new }
Expand Down

0 comments on commit 55e21fb

Please sign in to comment.