aggcat 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,3 +7,8 @@ rvm:
7
7
  - 1.9.2
8
8
  - 1.9.3
9
9
  - 2.0.0
10
+ env:
11
+ - JRUBY_OPTS="-Xcext.enabled=true"
12
+ script:
13
+ - gem build aggcat.gemspec
14
+ - gem install aggcat-*
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.required_rubygems_version = '>= 1.3.6'
23
23
 
24
24
  spec.add_dependency 'oauth', '>= 0.4'
25
- spec.add_dependency 'xmlhasher', '>= 0.0.4'
25
+ spec.add_dependency 'xmlhasher'
26
26
  spec.add_dependency 'nokogiri', '>= 1.5'
27
27
  spec.add_dependency 'builder', '>= 3.0'
28
28
  spec.add_dependency 'activesupport', '>= 3.2'
@@ -68,6 +68,9 @@ module Aggcat
68
68
  end
69
69
 
70
70
  def delete_customer
71
+ accounts[:result][:account_list].values.flatten.each do |account|
72
+ delete_account(account[:account_id])
73
+ end
71
74
  delete('/customers')
72
75
  end
73
76
 
@@ -1,3 +1,3 @@
1
1
  module Aggcat
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
@@ -143,6 +143,11 @@ class ClientTest < Test::Unit::TestCase
143
143
  end
144
144
 
145
145
  def test_delete_customer
146
+ stub_get('/accounts').to_return(:body => fixture('accounts.xml'), :headers => {:content_type => 'application/xml; charset=utf-8'})
147
+ account_ids = %w(75000033002 75000032995 75000033014 75000033009 75000033017 75000033013 75000033000 75000033003 75000033020 75000033010 75000033018 75000033007 75000033006 75000033008 75000032998 75000033001 75000033012 75000033019 75000033016 75000033015 75000032999 75000032997 75000032996 75000033004 75000033005 75000033021 75000033011)
148
+ account_ids.each do |account_id|
149
+ stub_delete("/accounts/#{account_id}").to_return(:status => 200)
150
+ end
146
151
  stub_delete('/customers').to_return(:status => 200)
147
152
  response = @client.delete_customer
148
153
  assert_equal '200', response[:status_code]
@@ -173,7 +178,6 @@ class ClientTest < Test::Unit::TestCase
173
178
  end
174
179
  end
175
180
 
176
-
177
181
  def test_account_confirmation
178
182
  institution_id = '100000'
179
183
  challenge_session_id = '1234'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aggcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-24 00:00:00.000000000 Z
12
+ date: 2013-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
- version: 0.0.4
37
+ version: '0'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
- version: 0.0.4
45
+ version: '0'
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: nokogiri
48
48
  requirement: !ruby/object:Gem::Requirement