aasmith-yodlee 0.0.1.20090227002742 → 0.0.1.20090301132701

Sign up to get free protection for your applications and to get access to all the features.
@@ -290,7 +290,9 @@ module Yodlee
290
290
  f = page.form_with(:name => 'updateForm')
291
291
  page = @agent.submit(f)
292
292
 
293
- @uris[:accounts] = page.uri.to_s << "&filter_id=-1"
293
+ link = page.links.detect { |lnk| lnk.attributes["id"] == "ACCOUNT_BALANCE" }
294
+
295
+ @uris[:accounts] = link.href.to_s << "&filter_id=-1"
294
296
  end
295
297
  end
296
298
  end
@@ -95,10 +95,13 @@ class TestYodlee < Test::Unit::TestCase
95
95
  def test_provide_password
96
96
  inject_agent(agent = flexmock("mechanize"))
97
97
 
98
+ link = flexmock("link")
99
+ link.should_receive(:href).and_return("https://example.com/accounts.page?x=y")
100
+
98
101
  page = flexmock("page")
99
102
  page.should_receive(:form_with).with(:name => 'loginForm').once.and_return(Hash.new)
100
103
  page.should_receive(:form_with).with(:name => 'updateForm').once.and_return(Hash.new)
101
- page.should_receive(:uri).and_return(URI.parse("http://example.com/accounts.page?x=y"))
104
+ page.should_receive(:"links.detect").and_return(link)
102
105
 
103
106
  agent.should_receive(:submit).with('password' => "foo").and_return(page)
104
107
  agent.should_receive(:submit).with(Hash.new).and_return(page)
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{yodlee}
5
- s.version = "0.0.1.20090227002742"
5
+ s.version = "0.0.1.20090301132701"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Andrew A. Smith"]
9
- s.date = %q{2009-02-27}
9
+ s.date = %q{2009-03-01}
10
10
  s.description = %q{Fetches accounts and their transaction details from the Yodlee MoneyCenter (https://moneycenter.yodlee.com).}
11
11
  s.email = ["andy@tinnedfruit.org"]
12
12
  s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.rdoc"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aasmith-yodlee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.20090227002742
4
+ version: 0.0.1.20090301132701
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew A. Smith
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-27 00:00:00 -08:00
12
+ date: 2009-03-01 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency