lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-1.15.0 vs lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-1.15.1
- old
+ new
@@ -32,10 +32,10 @@
MSG_HAVE_RECEIVED = 'Prefer `have_received` for setting message '\
'expectations. Setup `%s` as a spy using `allow`'\
' or `instance_spy`.'.freeze
- SUPPORTED_STYLES = %w(have_received receive).freeze
+ SUPPORTED_STYLES = %w[have_received receive].freeze
def_node_matcher :message_expectation, %(
(send (send nil :expect $_) {:to :to_not :not_to} ...)
)