Skip to content

Commit 55d052a

Browse files
authored
Merge pull request #1280 from ydah/fix_typo
Fix some typos
2 parents 2c7e866 + 55e21fb commit 55d052a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

lib/rubocop/rspec/node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module RuboCop
44
module RSpec
55
# RuboCop RSpec specific extensions of RuboCop::AST::Node
66
module Node
7-
# In various cops we want to regard const as literal althought it's not
7+
# In various cops we want to regard const as literal although it's not
88
# strictly literal.
99
def recursive_literal_or_const?
1010
case type

spec/rubocop/cli/autocorrect_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
RUBY
2727
end
2828

29-
it 'rubocop terminates with a succsess' do
29+
it 'rubocop terminates with a success' do
3030
expect(cli.run(['-A', '--only',
3131
'RSpec/Capybara/CurrentPathExpectation,' \
3232
'Style/TrailingCommaInArguments'])).to eq(0)

spec/rubocop/cop/rspec/overwriting_setup_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
RSpec.describe RuboCop::Cop::RSpec::OverwritingSetup do
4-
it 'registers an offense for overwriten `let`' do
4+
it 'registers an offense for overwritten `let`' do
55
expect_offense(<<-RUBY)
66
RSpec.describe User do
77
let(:a) { a }
@@ -11,7 +11,7 @@
1111
RUBY
1212
end
1313

14-
it 'registers an offense for overwriten `subject`' do
14+
it 'registers an offense for overwritten `subject`' do
1515
expect_offense(<<-RUBY)
1616
RSpec.describe User do
1717
subject(:a) { a }

spec/rubocop/cop/rspec/predicate_matcher_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
RUBY
6565
end
6666

67-
it 'accepts a predicate method that is not ckeced true/false' do
67+
it 'accepts a predicate method that is not checked true/false' do
6868
expect_no_offenses(<<-RUBY)
6969
expect(foo.something?).to eq "something"
7070
expect(foo.has_something?).to eq "something"

spec/rubocop/cop/rspec/subject_stub_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
RUBY
8888
end
8989

90-
it 'flags one-line expectcation syntax' do
90+
it 'flags one-line expectation syntax' do
9191
expect_offense(<<-RUBY)
9292
describe Foo do
9393
subject(:foo) { described_class.new }

0 commit comments

Comments
 (0)