Sha256: 90ad0181254d253b94b46abe78fa2709bf3f8f349ec555c4d155484ac83b6864
Contents?: true
Size: 590 Bytes
Versions: 3
Compression:
Stored size: 590 Bytes
Contents
require 'spec_helper' describe Appsignal::EventFormatter::ActiveRecord::InstantiationFormatter do let(:klass) { Appsignal::EventFormatter::ActiveRecord::SqlFormatter } let(:formatter) { klass.new } it "should register sql.active_record" do Appsignal::EventFormatter.registered?('sql.active_record', klass).should be_true end describe "#format" do let(:payload) do { name: 'User load', sql: 'SELECT * FROM users' } end subject { formatter.format(payload) } it { should eq ['User load', 'SELECT * FROM users', 1] } end end
Version data entries
3 entries across 3 versions & 1 rubygems