Class: RSpec::MailMatcher::DeliverToMatcher

Inherits:
AddressMatcher show all
Defined in:
lib/rspec/mail_matcher/deliver_to_matcher.rb

Instance Method Summary collapse

Methods inherited from AddressMatcher

#initialize, #matches?

Constructor Details

This class inherits a constructor from RSpec::MailMatcher::AddressMatcher

Instance Method Details

#descriptionObject



3
4
5
# File 'lib/rspec/mail_matcher/deliver_to_matcher.rb', line 3

def description
  "have deliver to as #{@expected}"
end

#failure_messageObject



7
8
9
# File 'lib/rspec/mail_matcher/deliver_to_matcher.rb', line 7

def failure_message
  "expected #{mails.inspect} not to deliver to #{@expected.inspect}, but it did"
end