Sha256: 76a5baa3db875b3a9778fdbf4717455082cbebe5ae8ae5d56e82e6762ffb2eb2
Contents?: true
Size: 631 Bytes
Versions: 3
Compression:
Stored size: 631 Bytes
Contents
require 'rubygems' require 'test/unit' require 'spec' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webmoney-0.0.7 | spec/spec_helper.rb |
webmoney-0.0.6 | spec/spec_helper.rb |
webmoney-0.0.5 | spec/spec_helper.rb |