require File.join(File.dirname(__FILE__), '..', 'spec_helper') describe HtmlEmailCreator::EmailCreator do let(:creator) { HtmlEmailCreator::EmailCreator.new } let(:aweber_email) { fixture_dir("complex_with_config", "Emails", "Aweber", "polite_email.yaml") } let(:mailchimp_email) { fixture_dir("complex_with_config", "Emails", "Mailchimp", "polite_email.yaml") } let(:expected_basic_text_html_aweber) { html = < A variant
Header 1 starts
Hi {!firstname_fix}, **Logo**: WOHOO.
Header 2 starts

{!firstname_fix}, I really love iPhone. GREAT!

eos } let(:expected_basic_text_html_mailchimp) { html = < A variant
Header 1 starts
Hi *|FNAME|*, **Logo**: WOHOO.
Header 2 starts

*|FNAME|*, I really love iPhone. GREAT!

eos } let(:expected_basic_text_txt_aweber) { text = <

This is simple template.

foo bar

bar foo

alt text eos } let(:expected_first_txt) { text = <