Sha256: ed7c8af1bc8a10659b936b6841142447651220a365846ced79622849942764bb

Contents?: true

Size: 581 Bytes

Versions: 432

Compression:

Stored size: 581 Bytes

Contents

describe Appsignal::EventFormatter::ActiveRecord::InstantiationFormatter do
  let(:klass)     { Appsignal::EventFormatter::ActiveRecord::InstantiationFormatter }
  let(:formatter) { klass.new }

  it "should register instantiation.active_record" do
    expect(Appsignal::EventFormatter.registered?("instantiation.active_record", klass)).to be_truthy
  end

  describe "#format" do
    let(:payload) do
      {
        :record_count => 1,
        :class_name => "User"
      }
    end

    subject { formatter.format(payload) }

    it { is_expected.to eq ["User", nil] }
  end
end

Version data entries

432 entries across 432 versions & 1 rubygems

Version Path
appsignal-4.0.6-java spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.6 spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.5-java spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.5 spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.4-java spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.4 spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.3-java spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.3 spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.2-java spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.2 spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.1-java spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.1 spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.0-java spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.0 spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-3.13.1-java spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-3.13.1 spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-3.13.1.alpha.1-java spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-3.13.1.alpha.1 spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.0.beta.2-java spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
appsignal-4.0.0.beta.2 spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb