Sha256: 39dacc0b58cd893d6f69b56355990647c9a63a11020348bec03e3aa6cea9c823

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

require 'spec_helper'

describe NewRelic::Agent::Instrumentation do
  subject { SlackRubyBot::Hooks::Message.new }
  let(:client) { SlackRubyBot::Client.new }

  it 'perform_action_with_newrelic_trace' do
    expect(subject)
      .to receive(:perform_action_with_newrelic_trace)
      .with(hash_including(name: 'call', category: 'OtherTransaction/Slack'))
      .and_yield

    subject.call(client, Hashie::Mash.new(message: 'message', text: 'hi'))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
newrelic-slack-ruby-bot-0.2.0 spec/newrelic-slack-ruby-bot/instrumentation_spec.rb