Sha256: 61e2f83ac8fc0cd369ce765dc12a3a13e9bfbeff725ad06feb2afb72d3c31e21

Contents?: true

Size: 540 Bytes

Versions: 68

Compression:

Stored size: 540 Bytes

Contents

RSpec.describe Pheme do
  let(:rollbar) { double }

  describe '.rollbar' do
    subject { described_class.rollbar(exception, message, data) }

    let(:exception) { StandardError }
    let(:message) { 'Unable to poll for messages' }
    let(:data) { { sqs_url: 'arn::foo::bar' } }

    before do
      described_class.configure do |config|
        config.rollbar = rollbar
      end
    end

    it 'sends error message to rollbar' do
      expect(rollbar).to receive(:error).with(exception, message, data)
      subject
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
pheme-5.3.4 spec/rollbar_spec.rb
pheme-5.3.3 spec/rollbar_spec.rb
pheme-5.3.0 spec/rollbar_spec.rb
pheme-5.2.16 spec/rollbar_spec.rb
pheme-5.2.15 spec/rollbar_spec.rb
pheme-5.2.14 spec/rollbar_spec.rb
pheme-5.2.13 spec/rollbar_spec.rb
pheme-5.2.12 spec/rollbar_spec.rb
pheme-5.2.11 spec/rollbar_spec.rb
pheme-5.2.10 spec/rollbar_spec.rb
pheme-5.2.9 spec/rollbar_spec.rb
pheme-5.2.8 spec/rollbar_spec.rb
pheme-5.2.7 spec/rollbar_spec.rb
pheme-5.2.6 spec/rollbar_spec.rb
pheme-5.2.5 spec/rollbar_spec.rb
pheme-5.2.4 spec/rollbar_spec.rb
pheme-5.2.3 spec/rollbar_spec.rb
pheme-5.2.2 spec/rollbar_spec.rb
pheme-5.2.1 spec/rollbar_spec.rb
pheme-5.2.0 spec/rollbar_spec.rb