Sha256: 9aa6b657658d25e808ce5b287a0e8a548ff636158cfb8327819ae26a756d0138

Contents?: true

Size: 468 Bytes

Versions: 11

Compression:

Stored size: 468 Bytes

Contents

require "spec_helper"

describe Shamu::Auditing::LoggingAuditingService do
  let( :service ) { scorpion.new Shamu::Auditing::LoggingAuditingService }

  it "writes to the logger" do
    expect( service.logger ).to receive( :unknown )

    transaction = Shamu::Auditing::Transaction.new \
      user_id_chain: [1, 2, 3],
      action: :change,
      changes: { name: "Mr Penguin" }

    transaction.append_entity [ "User", 45 ]

    service.commit transaction
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shamu-0.0.15 spec/lib/shamu/auditing/logging_auditing_service_spec.rb
shamu-0.0.14 spec/lib/shamu/auditing/logging_auditing_service_spec.rb
shamu-0.0.13 spec/lib/shamu/auditing/logging_auditing_service_spec.rb
shamu-0.0.11 spec/lib/shamu/auditing/logging_auditing_service_spec.rb
shamu-0.0.9 spec/lib/shamu/auditing/logging_auditing_service_spec.rb
shamu-0.0.8 spec/lib/shamu/auditing/logging_auditing_service_spec.rb
shamu-0.0.7 spec/lib/shamu/auditing/logging_auditing_service_spec.rb
shamu-0.0.5 spec/lib/shamu/auditing/logging_auditing_service_spec.rb
shamu-0.0.4 spec/lib/shamu/auditing/logging_auditing_service_spec.rb
shamu-0.0.3 spec/lib/shamu/auditing/logging_auditing_service_spec.rb
shamu-0.0.2 spec/lib/shamu/auditing/logging_auditing_service_spec.rb