Sha256: 22629f796a1af4a407e2b9dbc58701c5e8afd13b01ef4c6572591380d6ca8be8

Contents?: true

Size: 929 Bytes

Versions: 1

Compression:

Stored size: 929 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe ActiveWrapper::Db do
  
  before(:each) do
    $db, $log, $mail = ActiveWrapper.setup(
      :base => SPEC + '/example_project',
      :env => 'test'
    )
  end
  
  it "should set instance variables" do
    $mail.base.should =~ %r{active_wrapper/spec/example_project}
    $mail.config.should == {
      :sendmail => false,
      :smtp => {
        :address => "smtp.gmail.com",
        :authentication => :plain,
        :domain => "mydomain.com",
        :password => "password",
        :port => 587,
        :enable_starttls_auto => true,
        :user_name => "test@mydomain.com"
      },
      :imap => {
        :password => "password",
        :port => 993,
        :server => "imap.gmail.com",
        :ssl => true,
        :use_login => true,
        :username => "test@mydomain.com"
      }
    }
    $mail.env.should == 'test'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_wrapper-0.2.7 spec/active_wrapper/mail_spec.rb