Module: RSpec::MailMatcher
- Defined in:
- lib/rspec/mail_matcher.rb,
lib/rspec/mail_matcher/version.rb,
lib/rspec/mail_matcher/body_matcher.rb,
lib/rspec/mail_matcher/address_matcher.rb,
lib/rspec/mail_matcher/subject_matcher.rb,
lib/rspec/mail_matcher/reply_to_matcher.rb,
lib/rspec/mail_matcher/body_html_matcher.rb,
lib/rspec/mail_matcher/body_text_matcher.rb,
lib/rspec/mail_matcher/deliver_to_matcher.rb,
lib/rspec/mail_matcher/deliver_from_matcher.rb
Defined Under Namespace
Classes: AddressMatcher, BodyHtmlMatcher, BodyMatcher, BodyTextMatcher, DeliverFromMatcher, DeliverToMatcher, ReplyToMatcher, SubjectMatcher
Constant Summary
collapse
- VERSION =
"0.1.3"
Instance Method Summary
collapse
Instance Method Details
#deliver_from(expected) ⇒ Object
17
18
19
|
# File 'lib/rspec/mail_matcher.rb', line 17
def deliver_from(expected)
DeliverFromMatcher.new(expected)
end
|
#deliver_to(expected) ⇒ Object
13
14
15
|
# File 'lib/rspec/mail_matcher.rb', line 13
def deliver_to(expected)
DeliverToMatcher.new(expected)
end
|
#have_body_html(expected) ⇒ Object
33
34
35
|
# File 'lib/rspec/mail_matcher.rb', line 33
def have_body_html(expected)
BodyHtmlMatcher.new(expected)
end
|
#have_body_text(expected) ⇒ Object
29
30
31
|
# File 'lib/rspec/mail_matcher.rb', line 29
def have_body_text(expected)
BodyTextMatcher.new(expected)
end
|
#have_subject(expected) ⇒ Object
25
26
27
|
# File 'lib/rspec/mail_matcher.rb', line 25
def have_subject(expected)
SubjectMatcher.new(expected)
end
|
#reply_to(expected) ⇒ Object
21
22
23
|
# File 'lib/rspec/mail_matcher.rb', line 21
def reply_to(expected)
ReplyToMatcher.new(expected)
end
|