blob: 65b63d383fb1847f4745d1bd90ad5e0025aa551a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
describe AttachmentToHTML::HTML do
let(:adapter) { OpenStruct.new(:to_html => '<p>hello</p>', :success? => true) }
let(:html) { AttachmentToHTML::HTML.new(adapter) }
describe :to_s do
it 'returns the raw html' do
html.to_s.should == '<p>hello</p>'
end
end
describe :success? do
it 'returns whether the conversion succeeded' do
html.success?.should be_true
end
end
end
|