Sha256: 9751bc5a26f86b60baaf9ccedd5165a62631ee621efd2415c36bc9c12e83e4fd
Contents?: true
Size: 1.16 KB
Versions: 18
Compression:
Stored size: 1.16 KB
Contents
require 'spec_helper' require 'rollbar/configuration' describe Rollbar::Configuration do describe '#use_thread' do it 'enables async and sets a Thread as handler' do subject.use_thread expect(subject.use_async).to be_eql(true) expect(subject.async_handler).to be_eql(Rollbar::Delay::Thread) end end describe '#use_resque' do it 'enables async and sets Resque as the handler' do require 'resque' subject.use_resque(:queue => 'errors') expect(subject.use_async).to be_eql(true) expect(subject.async_handler).to be_eql(Rollbar::Delay::Resque) end end describe '#merge' do it 'returns a new object with overrided values' do subject.environment = 'foo' new_config = subject.merge(:environment => 'bar') expect(new_config).not_to be(subject) expect(new_config.environment).to be_eql('bar') end end describe '#merge!' do it 'returns the same object with overrided values' do subject.environment = 'foo' new_config = subject.merge!(:environment => 'bar') expect(new_config).to be(subject) expect(new_config.environment).to be_eql('bar') end end end
Version data entries
18 entries across 18 versions & 1 rubygems