Sha256: 839f5abcf428f47e41e1fbfbf1f0b7d980fbabcf3d06be137538d6ad7cd0ad93

Contents?: true

Size: 526 Bytes

Versions: 6

Compression:

Stored size: 526 Bytes

Contents

require 'spec_helper'

describe ::KPM::Listener do

  include ::Killbill::Plugin::ActiveMerchant::RSpec

  before(:each) do
    Dir.mktmpdir do |dir|
      file = File.new(File.join(dir, 'kpm.yml'), 'w+')
      file.write(<<-eos)
:kpm:
      eos
      file.close

      @plugin = build_plugin(::KPM::Listener, 'kpm', File.dirname(file))

      # Start the plugin here - since the config file will be deleted
      @plugin.start_plugin
    end
  end

  it 'should start and stop correctly' do
    @plugin.stop_plugin
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
killbill-kpm-1.1.0 spec/kpm/base_plugin_spec.rb
killbill-kpm-1.0.0 spec/kpm/base_plugin_spec.rb
killbill-kpm-0.0.5 spec/kpm/base_plugin_spec.rb
killbill-kpm-0.0.4 spec/kpm/base_plugin_spec.rb
killbill-kpm-0.0.3 spec/kpm/base_plugin_spec.rb
killbill-kpm-0.0.2 spec/kpm/base_plugin_spec.rb