forking_test_runner 0.2.0 → 0.2.1

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: 691b5e04b0f5d69105cfd566e00c7c080dcedba2
4
- data.tar.gz: fac4175373591f336a5d15aa946c8333032aab49
3
+ metadata.gz: 23fa3a9a4b20f865028013a80f1cbe81745d74b5
4
+ data.tar.gz: 6d29998593e3c18a29bd0c836bf6807252c4e3fc
5
5
  SHA512:
6
- metadata.gz: 169eaf23e55d0ef7930cd04dbab2d3017940c51fc4fafb0efe81fb1e27ae4954229d87f9cb3ea3fa9a901a2ed364ae78e72d886963bb0777333dff474d6f98b2
7
- data.tar.gz: 2a3e69f9865c50d8cc46e26c9075a2a9169c5a3b80c1bc49a7a37b54c89ea03382b8a541fe3354389e6cf1bce0c697dfb9c22db3011d7f0ccace44b997d08d98
6
+ metadata.gz: ee7953698a589e8104fd7fdc8d587860465e6e71de200baa7726a1c94744ef4931d89ea4cacc9b03a1ae135d990a02f6eb2abcbc3e983cd48eb76c219b23ab38
7
+ data.tar.gz: 71eabd54e0ddb54a916295e14d3affdf127ec9582927e237c07516ced6cd3c1c606ec92430e0b07077c5aef41eb07d1e62cc6c68c5ed651490921b05187df08d
@@ -1,3 +1,3 @@
1
1
  module ForkingTestRunner
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -111,7 +111,8 @@ module ForkingTestRunner
111
111
  fixtures = (ActiveSupport::VERSION::MAJOR == 3 ? ActiveRecord::Fixtures : ActiveRecord::FixtureSet)
112
112
 
113
113
  # reuse our pre-loaded fixtures even if we have a different connection
114
- fixtures.send(:define_method, :cache_for_connection) do |_connection|
114
+ fixtures_eigenclass = class << fixtures; self; end
115
+ fixtures_eigenclass.send(:define_method, :cache_for_connection) do |_connection|
115
116
  fixtures.class_variable_get(:@@all_cached_fixtures)[:unique]
116
117
  end
117
118
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forking_test_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel_tests