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



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

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