diff options
-rw-r--r-- | lib/attachment_to_html/attachment_to_html.rb | 1 | ||||
-rw-r--r-- | lib/attachment_to_html/html.rb | 14 | ||||
-rw-r--r-- | spec/lib/attachment_to_html/html_spec.rb | 24 |
3 files changed, 0 insertions, 39 deletions
diff --git a/lib/attachment_to_html/attachment_to_html.rb b/lib/attachment_to_html/attachment_to_html.rb index 8675329c4..ca899221b 100644 --- a/lib/attachment_to_html/attachment_to_html.rb +++ b/lib/attachment_to_html/attachment_to_html.rb @@ -1,4 +1,3 @@ -require 'html' require 'view' Dir[File.dirname(__FILE__) + '/adapters/*.rb'].each do |file| diff --git a/lib/attachment_to_html/html.rb b/lib/attachment_to_html/html.rb deleted file mode 100644 index 44d095be8..000000000 --- a/lib/attachment_to_html/html.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'forwardable' -module AttachmentToHTML - class HTML - extend Forwardable - - def_delegator :@adapter, :to_html, :to_s - def_delegator :@adapter, :success? - - def initialize(adapter) - @adapter = adapter - end - - end -end diff --git a/spec/lib/attachment_to_html/html_spec.rb b/spec/lib/attachment_to_html/html_spec.rb deleted file mode 100644 index 65b63d383..000000000 --- a/spec/lib/attachment_to_html/html_spec.rb +++ /dev/null @@ -1,24 +0,0 @@ -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 |