lib/hominid/campaign.rb in hominid-2.1.6 vs lib/hominid/campaign.rb in hominid-2.1.7

- old
+ new

@@ -578,11 +578,15 @@ # * send_type (String) = One of 'html', 'text' or '' (send both). Defaults to ''. # # Returns: # True if successful. # - def send_test(campaign_id, emails = {}, send_type = '') - call("campaignSendTest", campaign_id, emails, send_type) + def send_test(campaign_id, emails = {}, send_type = nil) + if send_type + call("campaignSendTest", campaign_id, emails, send_type) + else + call("campaignSendTest", campaign_id, emails) + end end # Get the URL to a customized VIP Report for the specified campaign and optionally send an email # to someone with links to it. Note subsequent calls will overwrite anything already set for the # same campign (eg, the password). \ No newline at end of file