Sha256: 9448902e3d25e5bb036bf6b5084f11e37a4c01aaf55b01c6c1403a4449a26ea1

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

require 'spec_helper'

class String
  def to_string
    self
  end
end

class MockEvent
  def get_event_type
    'InvoiceCreationEvent'
  end

  def get_object_type
    'INVOICE'
  end

  def get_object_id
    '1234'
  end

  def get_account_id
    '11-22-33'
  end

  def get_tenant_id
    '1100-998'
  end
end

describe Klogger do

  it 'should be able to parse a config file' do
    plugin = Klogger::KloggerPlugin.new
    plugin.start_plugin
    plugin.on_event MockEvent.new
    plugin.stop_plugin
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
klogger-1.0.0 spec/klogger/integration_spec.rb