Sha256: c7591d32913c9baf4afc2cc3f545bcd2fcc0dc96ac23000626215631d78845c6

Contents?: true

Size: 564 Bytes

Versions: 15

Compression:

Stored size: 564 Bytes

Contents

describe 'requiring queue_classic_plus/new_relic' do
  subject do
    Class.new(QueueClassicPlus::Base) do
      @queue = :test

      def self.perform
      end

      def self.name
        'Funky::Name'
      end
    end
  end

  it 'adds NewRelic profiling support' do
    expect(subject).to receive(:perform_action_with_newrelic_trace).once.with({
      name: 'perform',
      class_name: 'Funky::Name',
      category: 'OtherTransaction/QueueClassicPlus',
    })

    subject._perform
    require 'queue_classic_plus/new_relic'
    subject._perform
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
queue_classic_plus-4.0.0.alpha21 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha20 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha19 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha18 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha17 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha16 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha15 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha14 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha13 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha12 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha11 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha10 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha9 spec/new_relic_spec.rb
queue_classic_plus-4.0.0.alpha8 spec/new_relic_spec.rb
queue_classic_plus-1.1.0 spec/new_relic_spec.rb