action_subscriber 4.2.1 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 594de0a5e663d38d4e62b13f79397aaa0cfe3ac9
|
4
|
+
data.tar.gz: 6197131691887782ba9954c4b14e28d32e34bfca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f562a6485494250754c8accab507d1a7734461b889bfefd6fda4f51fe02cbdfe58bc26b344a11eaf86804e10cbdfdcbc3ed474755d2b7ad2d7cbe210ebada5b8
|
7
|
+
data.tar.gz: 00921c4ac4c2c366e05b975486609fec0645fb0e60b6fa974154d7c3b6782d00dac4277256e3c3d183e09088ae220b547e0eda73bcd024ab167d86973792d793
|
@@ -3,7 +3,12 @@ require 'action_subscriber/middleware/active_record/connection_management'
|
|
3
3
|
describe ActionSubscriber::Middleware::ActiveRecord::ConnectionManagement do
|
4
4
|
include_context 'action subscriber middleware env'
|
5
5
|
|
6
|
-
before {
|
6
|
+
before {
|
7
|
+
pool = double("pool")
|
8
|
+
allow(pool).to receive(:with_connection).and_yield
|
9
|
+
allow(ActiveRecord::Base).to receive(:clear_active_connections!)
|
10
|
+
allow(ActiveRecord::Base).to receive(:connection_pool).and_return(pool)
|
11
|
+
}
|
7
12
|
|
8
13
|
subject { described_class.new(app) }
|
9
14
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_subscriber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Stien
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2017-
|
15
|
+
date: 2017-04-20 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activesupport
|