Sha256: ebb56445b3bc4151672d7b1c2ee458435b6afe886350607dc5f40b8a0a32c44a

Contents?: true

Size: 726 Bytes

Versions: 10

Compression:

Stored size: 726 Bytes

Contents

require 'spec_helper'
require 'logger'

describe Killbill::PaypalExpress::PaymentPlugin do
  before(:each) do
    Dir.mktmpdir do |dir|
      file = File.new(File.join(dir, 'paypal_express.yml'), "w+")
      file.write(<<-eos)
:paypal:
  :signature: 'signature'
  :login: 'login'
  :password: 'password'
:database:
  :adapter: 'sqlite3'
  :database: 'shouldntmatter.db'
eos
      file.close

      @plugin = Killbill::PaypalExpress::PaymentPlugin.new
      @plugin.logger = Logger.new(STDOUT)
      @plugin.conf_dir = 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

10 entries across 10 versions & 1 rubygems

Version Path
killbill-paypal-express-1.0.14 spec/paypal_express/base_plugin_spec.rb
killbill-paypal-express-1.0.12 spec/paypal_express/base_plugin_spec.rb
killbill-paypal-express-1.0.11 spec/paypal_express/base_plugin_spec.rb
killbill-paypal-express-1.0.10 spec/paypal_express/base_plugin_spec.rb
killbill-paypal-express-1.0.9 spec/paypal_express/base_plugin_spec.rb
killbill-paypal-express-1.0.8 spec/paypal_express/base_plugin_spec.rb
killbill-paypal-express-1.0.6 spec/paypal_express/base_plugin_spec.rb
killbill-paypal-express-1.0.5 spec/paypal_express/base_plugin_spec.rb
killbill-paypal-express-1.0.4 spec/paypal_express/base_plugin_spec.rb
killbill-paypal-express-1.0.3 spec/paypal_express/base_plugin_spec.rb