LitleOnline 8.25.0 → 8.25.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +3 -0
  3. data/README.md +22 -2
  4. data/Rakefile +1 -1
  5. data/lib/Configuration.rb +21 -6
  6. data/lib/EnvironmentVariables.rb +21 -0
  7. data/test/certification/certTest1_base.rb +1 -2
  8. data/test/certification/certTest2_authenhanced.rb +1 -1
  9. data/test/certification/certTest3_authreversal.rb +1 -1
  10. data/test/certification/certTest4_echeck.rb +1 -1
  11. data/test/certification/certTest5_token.rb +1 -1
  12. data/test/certification/certTest_batchAll.rb +1 -1
  13. data/test/certification/ts_all.rb +1 -1
  14. data/test/functional/test_activate.rb +1 -1
  15. data/test/functional/test_activateReversal.rb +1 -1
  16. data/test/functional/test_auth.rb +1 -1
  17. data/test/functional/test_authReversal.rb +1 -1
  18. data/test/functional/test_balanceInquiry.rb +1 -1
  19. data/test/functional/test_batch.rb +1 -1
  20. data/test/functional/test_batchStream.rb +1 -1
  21. data/test/functional/test_cancelSubscription.rb +1 -1
  22. data/test/functional/test_capture.rb +1 -1
  23. data/test/functional/test_captureGivenAuth.rb +1 -1
  24. data/test/functional/test_configuration.rb +89 -0
  25. data/test/functional/test_createPlan.rb +1 -1
  26. data/test/functional/test_credit.rb +1 -1
  27. data/test/functional/test_deactivate.rb +1 -1
  28. data/test/functional/test_deactivateReversal.rb +1 -1
  29. data/test/functional/test_depositReversal.rb +1 -1
  30. data/test/functional/test_echeckCredit.rb +1 -1
  31. data/test/functional/test_echeckRedeposit.rb +1 -1
  32. data/test/functional/test_echeckSale.rb +1 -1
  33. data/test/functional/test_echeckVerification.rb +1 -1
  34. data/test/functional/test_echeckVoid.rb +1 -1
  35. data/test/functional/test_forceCapture.rb +1 -1
  36. data/test/functional/test_litle_requests.rb +1 -1
  37. data/test/functional/test_load.rb +1 -1
  38. data/test/functional/test_loadReversal.rb +1 -1
  39. data/test/functional/test_override.rb +64 -0
  40. data/test/functional/test_refundReversal.rb +1 -1
  41. data/test/functional/test_sale.rb +1 -1
  42. data/test/functional/test_token.rb +1 -1
  43. data/test/functional/test_unload.rb +1 -1
  44. data/test/functional/test_unloadReversal.rb +1 -1
  45. data/test/functional/test_updateCardValidationNumOnToken.rb +1 -1
  46. data/test/functional/test_updatePlan.rb +1 -1
  47. data/test/functional/test_updateSubscription.rb +1 -1
  48. data/test/functional/test_xmlfields.rb +1 -1
  49. data/test/functional/ts_all.rb +3 -1
  50. data/test/unit/test_LitleAUBatch.rb +1 -2
  51. data/test/unit/test_LitleBatchRequest.rb +2 -3
  52. data/test/unit/test_LitleOnlineRequest.rb +1 -2
  53. data/test/unit/test_LitleRequest.rb +1 -5
  54. data/test/unit/test_LitleTransaction.rb +2 -3
  55. data/test/unit/test_activate.rb +1 -1
  56. data/test/unit/test_activateReversal.rb +1 -1
  57. data/test/unit/test_auth.rb +1 -1
  58. data/test/unit/test_authReversal.rb +1 -1
  59. data/test/unit/test_balanceInquiry.rb +1 -1
  60. data/test/unit/test_cancelSubscription.rb +1 -1
  61. data/test/unit/test_capture.rb +1 -1
  62. data/test/unit/test_captureGivenAuth.rb +1 -1
  63. data/test/unit/test_createPlan.rb +1 -1
  64. data/test/unit/test_credit.rb +1 -1
  65. data/test/unit/test_deactivate.rb +1 -1
  66. data/test/unit/test_deactivateReversal.rb +1 -1
  67. data/test/unit/test_depositReversal.rb +1 -1
  68. data/test/unit/test_echeckCredit.rb +1 -1
  69. data/test/unit/test_echeckRedeposit.rb +1 -1
  70. data/test/unit/test_echeckSale.rb +1 -1
  71. data/test/unit/test_echeckVerification.rb +1 -1
  72. data/test/unit/test_echeckVoid.rb +1 -1
  73. data/test/unit/test_forceCapture.rb +1 -1
  74. data/test/unit/test_load.rb +1 -1
  75. data/test/unit/test_loadReversal.rb +1 -1
  76. data/test/unit/test_refundReversal.rb +1 -1
  77. data/test/unit/test_sale.rb +1 -1
  78. data/test/unit/test_token.rb +1 -1
  79. data/test/unit/test_unload.rb +1 -1
  80. data/test/unit/test_unloadReversal.rb +1 -1
  81. data/test/unit/test_updateCardValidationNumOnToken.rb +1 -1
  82. data/test/unit/test_updatePlan.rb +1 -1
  83. data/test/unit/test_updateSubscription.rb +1 -1
  84. data/test/unit/test_xmlfields.rb +1 -1
  85. data/test/unit/ts_unit.rb +2 -1
  86. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6051b618f3a2ffae5d17fd39c31763e2a4a04a45
4
- data.tar.gz: df8f9ee11c301b6491a53ae39560543d07a8f247
3
+ metadata.gz: 0b01ebb9b60055dc015cbe1b3441b7099604224c
4
+ data.tar.gz: f97e4bba4e9212f1fe618f56962bfab4402ccd57
5
5
  SHA512:
6
- metadata.gz: cd7645612e27b4c0dca96f740f199bef582171e2ca38c7b4350273642f68f6d5b3f954e0974aa0c27c3eff5a00190a566a91f19eabc664e1160c55363568a4a1
7
- data.tar.gz: 94a4f2bdb0912b3f58383f67e389735f6b233440597b3036e53943df76642a02b9b706596812cf8968c9cb5cd28bf10dce8d6b0eb1cc6a6eaf1c7bf1d821e248
6
+ metadata.gz: 5cd10d46d3b87c7de7f0c3685f38ef59ea5ba246fcaf49bf3dcf01fe6d724d3df1c550f9d8ceb125f9a751e171e9241f53014467c8311ca695d38e9b8126faa4
7
+ data.tar.gz: 0b4b19782db88b19eac1af4eb338daa426ea028b791028f2ef5716ebb7731c58c60012b10edb4dcf25ed68cfc1ce1b79738c871a78ea78bdbe814987dec1eab7
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  = LitleOnline CHANGELOG
2
2
 
3
+ == version 8.25.1 (July 18, 2014)
4
+ * Feature: Adding the capability of configuring the SDK through environment variables
5
+
3
6
  == version 8.25.0 (March 17, 2014)
4
7
  * Feature: Added support for ROAM: Authorization, ForceCapture, CaptureGivenAuth, Sale, Credit
5
8
 
data/README.md CHANGED
@@ -35,7 +35,21 @@ $HOME/.litle_SDK_config.yml
35
35
 
36
36
  For more details on setup see our instructions [here](https://github.com/LitleCo/litle-sdk-for-ruby/blob/master/SETUP.md)
37
37
 
38
- 3.) Create a ruby file similar to:
38
+ 3) If you do not want to run Setup.rb file, you can just set the Environment Variables by yourself. You may need to set those variables:
39
+ litle_user,
40
+ litle_password,
41
+ litle_currency_merchant_map,
42
+ litle_url,
43
+ litle_proxy_addr,
44
+ litle_proxy_port,
45
+ litle_sftp_username,
46
+ litle_sftp_password,
47
+ litle_sftp_url,
48
+ litle_fast_url
49
+
50
+ For all the variables, you can check lib/EnvironmentVariables for more info.
51
+
52
+ 4.) Create a ruby file similar to:
39
53
 
40
54
  ```ruby
41
55
  require 'LitleOnline'
@@ -61,10 +75,16 @@ puts "Message: "+ response.message
61
75
  puts "Litle Transaction ID: "+ response.saleResponse.litleTxnId
62
76
  ```
63
77
 
64
- 3) Next run this file using ruby. You should see the following result provided you have connectivity to the Litle certification environment. You will see an HTTP error if you don't have access to the Litle URL
78
+ 5) Next run this file using ruby. You should see the following result provided you have connectivity to the Litle certification environment. You will see an HTTP error if you don't have access to the Litle URL
65
79
 
66
80
  Message: Valid Format
67
81
  Litle Transaction ID: <your-numeric-litle-txn-id>
82
+
83
+ Test
84
+ -----
85
+ For unit test, you need to download the mocha gem.
86
+ go to root,
87
+ >gem install mocha
68
88
 
69
89
  More examples (including batch processing with sFTP) can be found here [Ruby Gists](https://gist.github.com/litleSDK)
70
90
 
data/Rakefile CHANGED
@@ -34,7 +34,7 @@ spec = Gem::Specification.new do |s|
34
34
  s.description = File.read(File.join(File.dirname(__FILE__), 'DESCRIPTION'))
35
35
  s.requirements =
36
36
  [ 'Contact sdksupport@litle.com for more information' ]
37
- s.version = "8.25.0"
37
+ s.version = "8.25.1"
38
38
  s.author = "Litle & Co"
39
39
  s.email = "sdksupport@litle.com"
40
40
  s.homepage = "http://www.litle.com/developers"
@@ -24,11 +24,10 @@ OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
25
 
26
26
  require 'yaml'
27
-
28
27
  #
29
28
  # Loads the configuration from a file
30
29
  #
31
- module LitleOnline
30
+ module LitleOnline
32
31
  class Configuration
33
32
  class << self
34
33
  # External logger, if specified
@@ -40,13 +39,29 @@ module LitleOnline
40
39
  if !(ENV['LITLE_CONFIG_DIR'].nil?)
41
40
  config_file = ENV['LITLE_CONFIG_DIR'] + "/.litle_SDK_config.yml"
42
41
  else
43
- config_file = ENV['HOME'] + "/.litle_SDK_config.yml"
42
+ config_file = ENV['HOME'] + "/.litle_SDK_config.yml"
44
43
  end
45
- return YAML.load_file(config_file)
46
- rescue
44
+ #if Env variable exist, then just override the data from config file
45
+ if (File.exists?(config_file))
46
+ datas=YAML.load_file(config_file)
47
+ else
48
+ environments = EnvironmentVariables.new
49
+ datas={}
50
+ environments.instance_variables.each {|var| datas[var.to_s.delete("@")] = environments.instance_variable_get(var) }
51
+ end
52
+ datas.each {|key,value| setENV(key,datas)}
53
+ return datas
54
+ rescue
47
55
  return {}
48
56
  end
49
57
 
50
58
  end
59
+ def setENV(key,datas)
60
+ if !(ENV['litle_'+key].nil?)
61
+ datas[key]=ENV['litle_'+key]
62
+ end
63
+ end
64
+
51
65
  end
52
- end
66
+
67
+ end
@@ -0,0 +1,21 @@
1
+ module LitleOnline
2
+ class EnvironmentVariables
3
+ def initialize
4
+ #load configuration data
5
+ @user = ''
6
+ @password = ''
7
+ @currency_merchant_map=''
8
+ @default_report_group='Default Report Group'
9
+ @url=''
10
+ @proxy_addr=''
11
+ @proxy_port=''
12
+ @sftp_username=''
13
+ @sftp_password=''
14
+ @sftp_url=''
15
+ @fast_url=''
16
+ @fast_port=''
17
+ @printxml=false
18
+ @timeout=65
19
+ end
20
+ end
21
+ end
@@ -1,5 +1,4 @@
1
- require 'lib/LitleOnline'
2
-
1
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
3
2
  #require 'Litle_activemerchant'
4
3
  require 'test/unit'
5
4
 
@@ -1,4 +1,4 @@
1
- require 'lib/LitleOnline'
1
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
2
2
  require 'test/unit'
3
3
 
4
4
  module LitleOnline
@@ -1,4 +1,4 @@
1
- require 'lib/LitleOnline'
1
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
2
2
  require 'test/unit'
3
3
 
4
4
  module LitleOnline
@@ -1,4 +1,4 @@
1
- require 'lib/LitleOnline'
1
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
2
2
  require 'test/unit'
3
3
 
4
4
  module LitleOnline
@@ -1,4 +1,4 @@
1
- require 'lib/LitleOnline'
1
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
2
2
  require 'test/unit'
3
3
 
4
4
  module LitleOnline
@@ -23,7 +23,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
25
 
26
- require 'lib/LitleOnline'
26
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
27
27
  require 'test/unit'
28
28
  require 'fileutils'
29
29
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
 
27
27
 
28
28
  #test driver for running all tests
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test Activate Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test ActivateReversal Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test Authorization Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test BalanceInquiry Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'fileutils'
28
28
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'fileutils'
28
28
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test Authorization Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -0,0 +1,89 @@
1
+ =begin
2
+ Copyright (c) 2012 Litle & Co.
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21
+ OTHER DEALINGS IN THE SOFTWARE.
22
+ =end
23
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
24
+ require 'test/unit'
25
+
26
+
27
+ module LitleOnline
28
+ class TestConfiguration < Test::Unit::TestCase
29
+ #the flag is to judge the data in config file exist or not
30
+ @@flag=false
31
+ def test_configuration_with_file
32
+ @config_hash = Configuration.new.config
33
+ @config_hash.each {|key,value| checkAttributes(key,@config_hash)}
34
+ assert_equal(false, @@flag)
35
+ end
36
+
37
+ def checkAttributes(key,datas)
38
+ if (datas[key].nil?)
39
+ @@flag=true
40
+ end
41
+ end
42
+
43
+ def test_configuration_mix_file_env
44
+ #check the env variable override
45
+ ENV['litle_timeout']='80'
46
+ @config_hash = Configuration.new.config
47
+ assert_equal('80',@config_hash['timeout'])
48
+ ENV['litle_timeout']=nil
49
+ end
50
+
51
+
52
+
53
+ def test_configuration_without_file
54
+ #set up Env variable
55
+ ENV['litle_user']='isola'
56
+ ENV['litle_password']='vinicius'
57
+ ENV['litle_currency_merchant_map']='0180'
58
+ ENV['litle_url']='basketball@gmail.com'
59
+ ENV['litle_proxy_addr']='iwp1.lowell.litle.com'
60
+ ENV['litle_proxy_port']='8080'
61
+ ENV['litle_sftp_username']='sdkFire'
62
+ ENV['litle_sftp_password']='fire is comming'
63
+ ENV['litle_fast_url']='prelive.litle.com'
64
+ ENV['litle_fast_port']='15000'
65
+ @config_hash = Configuration.new.config
66
+ assert_equal('isola',@config_hash['user'])
67
+ assert_equal('vinicius',@config_hash['password'])
68
+ assert_equal('0180',@config_hash['currency_merchant_map'])
69
+ assert_equal('basketball@gmail.com',@config_hash['url'])
70
+ assert_equal('iwp1.lowell.litle.com',@config_hash['proxy_addr'])
71
+ assert_equal('8080',@config_hash['proxy_port'])
72
+ assert_equal('sdkFire',@config_hash['sftp_username'])
73
+ assert_equal('fire is comming',@config_hash['sftp_password'])
74
+ assert_equal('prelive.litle.com',@config_hash['fast_url'])
75
+ assert_equal('15000',@config_hash['fast_port'])
76
+ ENV['litle_user']=nil
77
+ ENV['litle_password']=nil
78
+ ENV['litle_currency_merchant_map']=nil
79
+ ENV['litle_url']=nil
80
+ ENV['litle_proxy_addr']=nil
81
+ ENV['litle_proxy_port']=nil
82
+ ENV['litle_sftp_username']=nil
83
+ ENV['litle_sftp_password']=nil
84
+ ENV['litle_fast_url']=nil
85
+ ENV['litle_fast_port']=nil
86
+ end
87
+
88
+ end
89
+ end
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test Activate Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test Deactivate Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test DeactivateReversal Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test DepositReversal Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'fileutils'
28
28
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test Load Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test loadReversal Transaction
@@ -0,0 +1,64 @@
1
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
2
+ require 'test/unit'
3
+
4
+ #test Activate Transaction
5
+ module LitleOnline
6
+ class TestOverride < Test::Unit::TestCase
7
+ def test_override_withoutLocalAndEnv
8
+ hash = {
9
+ 'merchantId' => '101',
10
+ 'version'=>'8.8',
11
+ 'orderId' =>'1001',
12
+ 'amount' =>'500',
13
+ 'orderSource' =>'ecommerce',
14
+ 'card'=>{
15
+ 'type'=>'VI',
16
+ 'number' =>'4100000000000001',
17
+ 'expDate' =>'1210'
18
+ }
19
+ }
20
+ response= LitleOnlineRequest.new.activate(hash)
21
+ assert_equal('Default Report Group', response.activateResponse.reportGroup)
22
+ end
23
+ def test_override_withoutLocal
24
+ hash = {
25
+ 'merchantId' => '101',
26
+ 'version'=>'8.8',
27
+ 'orderId' =>'1001',
28
+ 'amount' =>'500',
29
+ 'orderSource' =>'ecommerce',
30
+ 'card'=>{
31
+ 'type'=>'VI',
32
+ 'number' =>'4100000000000001',
33
+ 'expDate' =>'1210'
34
+ }
35
+ }
36
+ ENV['litle_default_report_group']='380'
37
+ response= LitleOnlineRequest.new.activate(hash)
38
+ assert_equal('380', response.activateResponse.reportGroup)
39
+ ENV['litle_default_report_group']=nil
40
+
41
+ end
42
+ def test_override
43
+ hash = {
44
+ 'merchantId' => '101',
45
+ 'version'=>'8.8',
46
+ 'reportGroup'=>'Planets',
47
+ 'orderId' =>'1001',
48
+ 'amount' =>'500',
49
+ 'orderSource' =>'ecommerce',
50
+ 'card'=>{
51
+ 'type'=>'VI',
52
+ 'number' =>'4100000000000001',
53
+ 'expDate' =>'1210'
54
+ }
55
+ }
56
+ ENV['litle_default_report_group']='380'
57
+ response= LitleOnlineRequest.new.activate(hash)
58
+ assert_equal('Planets', response.activateResponse.reportGroup)
59
+ ENV['litle_default_report_group']=nil
60
+
61
+ end
62
+
63
+ end
64
+ end
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test RefundReversal Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test Unload Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test unloadReversal Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test UpdatePlan Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  #test Authorization Transaction
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -23,7 +23,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
25
 
26
- require 'lib/LitleOnline'
26
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
27
27
 
28
28
 
29
29
  #test driver for running all tests
@@ -62,3 +62,5 @@ require_relative 'test_refundReversal'
62
62
  require_relative 'test_loadReversal'
63
63
  require_relative 'test_unloadReversal'
64
64
  require_relative 'test_deactivateReversal'
65
+ require_relative 'test_override'
66
+ require_relative 'test_configuration'
@@ -22,8 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
26
- require 'lib/LitleBatchRequest'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
27
26
  require 'test/unit'
28
27
  require 'mocha/setup'
29
28
 
@@ -22,9 +22,8 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
26
- require 'lib/LitleOnlineRequest'
27
- require 'lib/LitleBatchRequest'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
+
28
27
  require 'test/unit'
29
28
  require 'mocha/setup'
30
29
 
@@ -22,8 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
26
- require 'lib/LitleOnlineRequest'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
27
26
  require 'test/unit'
28
27
  require 'mocha/setup'
29
28
 
@@ -22,11 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
26
- require 'lib/LitleOnlineRequest'
27
- require 'lib/LitleRequest'
28
- require 'lib/LitleBatchRequest'
29
- require 'lib/LitleListeners'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
30
26
  require 'test/unit'
31
27
  require 'mocha/setup'
32
28
 
@@ -22,9 +22,8 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
26
- require 'lib/LitleOnlineRequest'
27
- require 'lib/LitleBatchRequest'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
+
28
27
  require 'test/unit'
29
28
  require 'mocha/setup'
30
29
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'mocha/setup'
28
28
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'mocha/setup'
28
28
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'mocha/setup'
28
28
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'mocha/setup'
28
28
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'mocha/setup'
28
28
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'mocha/setup'
28
28
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'mocha/setup'
28
28
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
 
28
28
  module LitleOnline
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'mocha/setup'
28
28
 
@@ -22,7 +22,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
22
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
- require 'lib/LitleOnline'
25
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
26
26
  require 'test/unit'
27
27
  require 'mocha/setup'
28
28
 
@@ -23,7 +23,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
23
  OTHER DEALINGS IN THE SOFTWARE.
24
24
  =end
25
25
  require 'test/unit'
26
- require 'lib/LitleOnline'
26
+ require File.expand_path("../../../lib/LitleOnline",__FILE__)
27
27
 
28
28
 
29
29
  require_relative 'test_xmlfields'
@@ -62,3 +62,4 @@ require_relative 'test_refundReversal'
62
62
  require_relative 'test_loadReversal'
63
63
  require_relative 'test_unloadReversal'
64
64
  require_relative 'test_deactivateReversal'
65
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: LitleOnline
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.25.0
4
+ version: 8.25.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Litle & Co
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-20 00:00:00.000000000 Z
11
+ date: 2014-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-object
@@ -119,6 +119,7 @@ files:
119
119
  - bin/sample_driver.rb
120
120
  - lib/Communications.rb
121
121
  - lib/Configuration.rb
122
+ - lib/EnvironmentVariables.rb
122
123
  - lib/LitleBatchRequest.rb
123
124
  - lib/LitleListeners.rb
124
125
  - lib/LitleOnline.rb
@@ -145,6 +146,7 @@ files:
145
146
  - test/functional/test_cancelSubscription.rb
146
147
  - test/functional/test_capture.rb
147
148
  - test/functional/test_captureGivenAuth.rb
149
+ - test/functional/test_configuration.rb
148
150
  - test/functional/test_createPlan.rb
149
151
  - test/functional/test_credit.rb
150
152
  - test/functional/test_deactivate.rb
@@ -159,6 +161,7 @@ files:
159
161
  - test/functional/test_litle_requests.rb
160
162
  - test/functional/test_load.rb
161
163
  - test/functional/test_loadReversal.rb
164
+ - test/functional/test_override.rb
162
165
  - test/functional/test_refundReversal.rb
163
166
  - test/functional/test_sale.rb
164
167
  - test/functional/test_token.rb