require File.join(File.dirname(__FILE__), '..', 'spec_helper') describe HtmlEmailCreator::Processor do let(:processor) { html = <<-eos Title

Header 1

col1col2
row 1 col 1row 1 col 2
row 2 col 1row 2 col 2
This is simple email with link

Great image

Signup

Header 2

eos HtmlEmailCreator::Processor.new(html) } describe "#to_html" do let(:html) { processor.to_html } it "should wrap headers with divs" do html.should include('
Header 1
') end it "should inline styles" do html.should include('