Skip to content

Commit

Permalink
Fix typo accpets -> accepts in specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvandersluis committed Aug 3, 2021
1 parent d40dfe7 commit 1c140a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/rubocop/cop/layout/empty_line_after_guard_clause_spec.rb
Expand Up @@ -362,7 +362,7 @@ def foo
RUBY
end

it 'accpets a guard clause when the next line is `ensure`' do
it 'accepts a guard clause when the next line is `ensure`' do
expect_no_offenses(<<~RUBY)
def foo
begin
Expand All @@ -374,7 +374,7 @@ def foo
RUBY
end

it 'accpets a guard clause when the next line is `rescue`-`else`' do
it 'accepts a guard clause when the next line is `rescue`-`else`' do
expect_no_offenses(<<~RUBY)
def foo
begin
Expand All @@ -400,7 +400,7 @@ def foo
RUBY
end

it 'accpets a guard clause when the next line is `elsif`' do
it 'accepts a guard clause when the next line is `elsif`' do
expect_no_offenses(<<~RUBY)
def foo
if cond
Expand Down Expand Up @@ -438,7 +438,7 @@ def foo
RUBY
end

it 'accpets a guard clause that is after a multiline heredoc with chained calls' do
it 'accepts a guard clause that is after a multiline heredoc with chained calls' do
expect_no_offenses(<<~RUBY)
def foo
raise ArgumentError, <<~END.squish.it.good unless guard
Expand All @@ -451,7 +451,7 @@ def foo
RUBY
end

it 'accpets a guard clause that is after a multiline heredoc nested argument call' do
it 'accepts a guard clause that is after a multiline heredoc nested argument call' do
expect_no_offenses(<<~RUBY)
def foo
raise ArgumentError, call(<<~END.squish) unless guard
Expand Down

0 comments on commit 1c140a6

Please sign in to comment.