Sha256: 039cdd45914da972ad0e00ac4b3ec9fd75ff6257c1e3d0be62e1e18f6618ac54

Contents?: true

Size: 444 Bytes

Versions: 10

Compression:

Stored size: 444 Bytes

Contents

require 'spec_helper'

describe Outbox::Rails::Railtie do
  describe '.logger' do
    it 'defaults to Rails.logger' do
      expect(BaseNotifier.logger).to be(Rails.logger)
    end
  end

  describe '.config' do
    it 'sets configuration' do
      email_client = Outbox::Messages::Email.default_client
      expect(email_client).to be_a(Outbox::Clients::TestClient)
      expect(email_client.settings[:option_1]).to eq(true)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
outbox-rails-1.0.0 spec/outbox/rails/railtie_spec.rb
outbox-rails-0.5.1 spec/outbox/rails/railtie_spec.rb
outbox-rails-0.5.0 spec/outbox/rails/railtie_spec.rb
outbox-rails-0.4.2 spec/outbox/rails/railtie_spec.rb
outbox-rails-0.4.1 spec/outbox/rails/railtie_spec.rb
outbox-rails-0.4.0 spec/outbox/rails/railtie_spec.rb
outbox-rails-0.3.0 spec/outbox/rails/railtie_spec.rb
outbox-rails-0.2.0 spec/outbox/rails/railtie_spec.rb
outbox-rails-0.1.2 spec/outbox/rails/railtie_spec.rb
outbox-rails-0.1.1 spec/outbox/rails/railtie_spec.rb