Class: EmailSpec::Matchers::EmailMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/email_spec/matchers.rb

Direct Known Subclasses

BccTo, CcTo, DeliverFrom, DeliverTo

Instance Method Summary collapse

Instance Method Details

#address_arrayObject



6
7
8
9
10
11
12
# File 'lib/email_spec/matchers.rb', line 6

def address_array
  if @email.perform_deliveries
    Array(yield)
  else
    []
  end
end