Sha256: de1c8e50e4e4ceeed95ee45f8336c8154028536384d75054d7b29e526bfee84a

Contents?: true

Size: 950 Bytes

Versions: 1

Compression:

Stored size: 950 Bytes

Contents

module Emailer
  
  LOGGER_OPTIONS = {
      :temp_dir => 'smtp.host.com',
      :use => MockSmtpFacade.new
  }
  
  describe LoggerSmtpFacade do
    
    describe :initialize do
      it "should accept only known options" do
        lambda do
          LoggerSmtpFacade.new :foobar => 'fail'
        end.should raise_error
      end
      
      it "should accept all known options" do
        LoggerSmtpFacade.new LOGGER_OPTIONS
      end
      
      it "should demand temp_dir option" do
        lambda do
          LoggerSmtpFacade.new
        end.shouldh raise_error
      end
    end
    
    
   # Should be able to wrap another smtp facade
   # Should have temp directory configurable
   # Should be abel to log to one file
   # Should be able to log to many files
   # Should write to many files as html files viewable in a browser
   # Should write to one file as ruby code style
   # Should bork if no directory is supplied
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bjornblomqvist-emailer-0.1.5 spec/emailer/logger_smtp_facade_spec.rb