lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-1.12.0 vs lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-1.13.0
- old
+ new
@@ -25,14 +25,15 @@
# expect(foo).to receive(:bar)
#
class MessageSpies < Cop
include ConfigurableEnforcedStyle
- MSG_RECEIVE = 'Prefer `receive` for setting message ' \
- 'expectations.'.freeze
- MSG_HAVE_RECEIVED = 'Prefer `have_received` for setting message ' \
- 'expectations. Setup `%s` as a spy using `allow` or `instance_spy`.'
- .freeze
+ MSG_RECEIVE = 'Prefer `receive` for setting message '\
+ 'expectations.'.freeze
+
+ 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
def_node_matcher :message_expectation, %(
(send (send nil :expect $_) {:to :to_not :not_to} ...)