lib/rubocop/cop/rspec/subject_stub.rb in rubocop-rspec-1.12.0 vs lib/rubocop/cop/rspec/subject_stub.rb in rubocop-rspec-1.13.0
- old
+ new
@@ -37,13 +37,13 @@
#
# @param node [RuboCop::Node]
#
# @yield [Symbol] subject name
def_node_matcher :subject, <<-PATTERN
- {
- (block (send nil :subject (sym $_)) args ...)
- (block (send nil $:subject) args ...)
- }
+ {
+ (block (send nil :subject (sym $_)) args ...)
+ (block (send nil $:subject) args ...)
+ }
PATTERN
# @!method message_expectation?(node, method_name)
# Match `allow` and `expect(...).to receive`
#