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