Sha256: fb07ade0c1122ff0db819a2c8d423e1e5bb212fe9efdea081851aeedd4131d70

Contents?: true

Size: 649 Bytes

Versions: 1

Compression:

Stored size: 649 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'spec'
require 'hpricot'
require 'ostruct'
require 'yaml'
require 'time'
require File.dirname(__FILE__) + '/../lib/webmoney'

# Variables may be access, for example WmConfig.wmid
config = OpenStruct.new(YAML.load_file("#{ENV['HOME']}/.wm/config.yml"))
if ENV['WM_ENV']
  env_config = config.send(ENV['WM_ENV'])
  config.common.update(env_config) unless env_config.nil?
end
::WmConfig = OpenStruct.new(config.common)

class TestWM
  include Webmoney
end

def webmoney
  TestWM.new :wmid => WmConfig.wmid,
    :password => WmConfig.password,
    :key => WmConfig.key,
    :ca_cert => WmConfig.ca_cert
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webmoney-0.0.4.8 spec/spec_helper.rb