class MFMailComposeViewController
Monkey-patching MFMailComposeViewController
So we can access the values that are set. This of course breaks MFMailComposeViewController
from actually working, but it's testable.
Attributes
bccRecipients[RW]
ccRecipients[RW]
html[RW]
message[RW]
subject[RW]
toRecipients[RW]
Public Instance Methods
setBccRecipients(r)
click to toggle source
# File spec/motion/mail/mail_spec.rb, line 25 def setBccRecipients(r) self.bccRecipients = r end
setCcRecipients(r)
click to toggle source
# File spec/motion/mail/mail_spec.rb, line 21 def setCcRecipients(r) self.ccRecipients = r end
setMessageBody(message, isHTML: html)
click to toggle source
# File spec/motion/mail/mail_spec.rb, line 33 def setMessageBody(message, isHTML: html) self.message = message self.html = html end
setSubject(r)
click to toggle source
# File spec/motion/mail/mail_spec.rb, line 29 def setSubject(r) self.subject = r end
setToRecipients(r)
click to toggle source
# File spec/motion/mail/mail_spec.rb, line 17 def setToRecipients(r) self.toRecipients = r end