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.
@@ -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
@@ -1,7 +1,6 @@
1
1
  ENV['RAILS_ENV'] ||= 'test'
2
2
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
3
3
  require 'rspec/rails'
4
- require 'rspec/autorun'
5
4
  require 'factory_girl_rails'
6
5
  require 'shoulda-matchers'
7
6
  require 'plaid'
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.8.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-15 00:00:00.000000000 Z
11
+ date: 2017-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails