lib/rubocop/cop/rspec/example_wording.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/example_wording.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -36,9 +36,10 @@
MSG_IT = "Do not repeat 'it' when describing your tests."
SHOULD_PREFIX = /\Ashould(?:n't)?\b/i.freeze
IT_PREFIX = /\Ait /i.freeze
+ # @!method it_description(node)
def_node_matcher :it_description, <<-PATTERN
(block (send _ :it ${
(str $_)
(dstr (str $_ ) ...)
} ...) ...)