tests/api/api_parser_tests.rb
# Skeleton assertion used for testing Email Text Array
Skeleton assertion used for testing Email Text Array
Skeleton assertion used for testing Email Text Array
def email_array_assert(exp_val, inp_val)
    exp_hash = {}
    unless exp_val.nil?
      exp_hash['to'] = exp_val
      exp_hash['to'] = [EmailAddress.new(exp_val)] unless exp_val.is_a?(Array)
      if exp_val.is_a? Array
        exp_hash['to'] = []
        exp_val.each do |val|
          exp_hash['to'].push EmailAddress.new val
        end
      end
    end
    exp = expected_response exp_hash
    assert_equal exp, ApiParser.parse_email(nil, inp_val)
  end
def email_array_assert ( exp_val , inp_val ) exp_hash = { } unless exp_val . nil? exp_hash [ 'to' ] = exp_val exp_hash [ 'to' ] = [ EmailAddress . new ( exp_val ) ] unless exp_val . is_a? ( Array ) if exp_val . is_a? Array exp_hash [ 'to' ] = [ ] exp_val . each do | val | exp_hash [ 'to' ] . push EmailAddress . new val end end end exp = expected_response exp_hash assert_equal exp , ApiParser . parse_email ( nil , inp_val ) end
Skeleton assertion used for testing Email Text Array
Skeleton assertion used for testing Email Text Array
exp_val
<not_specific>
inp_val
<not_specific>