lib/rubocop/cop/rspec/example_wording.rb in rubocop-rspec-3.0.2 vs lib/rubocop/cop/rspec/example_wording.rb in rubocop-rspec-3.0.3
- old
+ new
@@ -53,11 +53,11 @@
MSG_WILL = 'Do not use the future tense when describing your tests.'
MSG_IT = "Do not repeat 'it' when describing your tests."
MSG_INSUFFICIENT_DESCRIPTION = 'Your example description is ' \
'insufficient.'
- SHOULD_PREFIX = /\Ashould(?:n't)?\b/i.freeze
- WILL_PREFIX = /\A(?:will|won't)\b/i.freeze
+ SHOULD_PREFIX = /\Ashould(?:n't|n’t)?\b/i.freeze
+ WILL_PREFIX = /\A(?:will|won't|won’t)\b/i.freeze
IT_PREFIX = /\Ait /i.freeze
# @!method it_description(node)
def_node_matcher :it_description, <<~PATTERN
(block (send _ :it ${