plaid_rails 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/plaid_rails/account.rb +1 -0
- data/lib/plaid_rails/version.rb +1 -1
- data/spec/dummy/log/test.log +2678 -0
- data/spec/models/plaid_rails/account_spec.rb +9 -0
- data/spec/spec_helper.rb +0 -1
- metadata +2 -2
@@ -35,5 +35,14 @@ module PlaidRails
|
|
35
35
|
expect(Plaid::User).to_not receive(:load).with(:connect, "test_wells").and_raise("boom")
|
36
36
|
account.send(:delete_connect)
|
37
37
|
end
|
38
|
+
|
39
|
+
it "before_save delete_connect" do
|
40
|
+
expect(account).to receive(:delete_connect)
|
41
|
+
account.update(access_token: 'foobar')
|
42
|
+
end
|
43
|
+
it "does not before_save delete_connect" do
|
44
|
+
expect(account).to_not receive(:delete_connect)
|
45
|
+
account.update(last_sync: Time.now)
|
46
|
+
end
|
38
47
|
end
|
39
48
|
end
|
data/spec/spec_helper.rb
CHANGED
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.9.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: 2017-10-
|
11
|
+
date: 2017-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|