Sha256: 45f926e32bfa84951c09ca7c72e72c85819a8917c7fdfa375e4962824ed2e537

Contents?: true

Size: 688 Bytes

Versions: 3

Compression:

Stored size: 688 Bytes

Contents

require 'spec_helper'

describe Killbill::PayuLatam::PaymentPlugin do

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

  before(:each) do
    Dir.mktmpdir do |dir|
      file = File.new(File.join(dir, 'payu_latam.yml'), 'w+')
      file.write(<<-eos)
:payu_latam:
  :test: true
# As defined by spec_helper.rb
:database:
  :adapter: 'sqlite3'
  :database: 'test.db'
      eos
      file.close

      @plugin = build_plugin(::Killbill::PayuLatam::PaymentPlugin, 'payu_latam', 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

3 entries across 3 versions & 1 rubygems

Version Path
killbill-payu-latam-0.3.0 spec/payu_latam/base_plugin_spec.rb
killbill-payu-latam-0.2.0 spec/payu_latam/base_plugin_spec.rb
killbill-payu-latam-0.1.0 spec/payu_latam/base_plugin_spec.rb