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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/plaid_rails/link.js +4 -5
- data/app/controllers/plaid_rails/accounts_controller.rb +1 -1
- data/app/models/plaid_rails/account.rb +1 -3
- data/db/migrate/20180924123554_add_stripe_token_to_accounts.rb +5 -0
- data/lib/plaid_rails/version.rb +1 -1
- data/spec/controllers/plaid_rails/accounts_controller_spec.rb +2 -0
- data/spec/dummy/db/schema.rb +2 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +3067 -0
- data/spec/models/plaid_rails/account_spec.rb +2 -11
- metadata +3 -2
@@ -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
|
-
|
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.
|
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-
|
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
|