Skip to content

Commit

Permalink
Fix bad indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bquorning committed Jan 3, 2024
1 parent df8aa53 commit 7d73d26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/rails/minitest_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class MinitestAssertions < Base

# @!method minitest_assertion(node)
def_node_matcher :minitest_assertion, <<~PATTERN
(send nil? {:assert_equal :refute_equal} $_ $_ $_?)
(send nil? {:assert_equal :refute_equal} $_ $_ $_?)
PATTERN

def on_send(node)
Expand Down
8 changes: 4 additions & 4 deletions lib/rubocop/rspec/language.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class << self

# @!method hook?(node)
def_node_matcher :hook?, <<~PATTERN
{
(numblock (send nil? #Hooks.all ...) ...)
(block (send nil? #Hooks.all ...) ...)
}
{
(numblock (send nil? #Hooks.all ...) ...)
(block (send nil? #Hooks.all ...) ...)
}
PATTERN

# @!method let?(node)
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cop/rspec/instance_spy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
it do
foo = instance_double(Foo)
expect(bar).to have_received(:bar)
end
end
RUBY
end
end
Expand Down

0 comments on commit 7d73d26

Please sign in to comment.