plaid_rails 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,7 +35,7 @@ module PlaidRails
35
35
  client_id: PlaidRails.client_id,
36
36
  secret: PlaidRails.secret,
37
37
  public_key: PlaidRails.public_key).and_return(client)
38
- expect(client).to receive(:transactions).and_return([1])
38
+
39
39
  expect(client).to receive(:item).and_return(item)
40
40
  expect(item).to receive(:remove).with(token)
41
41
  account.send(:delete_connect)
@@ -48,16 +48,7 @@ module PlaidRails
48
48
  secret: PlaidRails.secret,
49
49
  public_key: PlaidRails.public_key).and_raise("boom")
50
50
  end
51
-
52
- it "does not delete_connect without transactions" do
53
- user = double
54
- expect(Plaid::Client).to receive(:new).with(env: PlaidRails.env,
55
- client_id: PlaidRails.client_id,
56
- secret: PlaidRails.secret,
57
- public_key: PlaidRails.public_key).and_return(user)
58
- expect(user).to receive(:transactions).and_return([])
59
- account.update(access_token: 'foobar')
60
- end
51
+
61
52
 
62
53
  it 'does not delete_connect with same access_token' do
63
54
  2.times{FactoryGirl.create(:account) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plaid_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Curt Wilhelm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-16 00:00:00.000000000 Z
11
+ date: 2018-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -186,6 +186,7 @@ files:
186
186
  - db/migrate/20160215155024_create_plaid_rails_accounts.rb
187
187
  - db/migrate/20160323141534_add_transactions_start_date_to_accounts.rb
188
188
  - db/migrate/20180617232228_api_update.rb
189
+ - db/migrate/20180924123554_add_stripe_token_to_accounts.rb
189
190
  - db/test.sqlite3
190
191
  - lib/generators/plaid_rails/install_generator.rb
191
192
  - lib/generators/plaid_rails/templates/initializer.rb