forking_test_runner 0.1.1 → 0.1.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: 22ab9381cfa421a0a5f4a088adc481a611f79938
4
- data.tar.gz: aa7438cba9f5b2d176601dd9397a23961101c8bb
3
+ metadata.gz: c7dc622ff1b3350704d3ccf31cf25c1d51b13ee4
4
+ data.tar.gz: 5cdb2b8430b13547d2cafcb9cbaa752565fad7db
5
5
  SHA512:
6
- metadata.gz: 8446a924b2e3c4e354a6f305bdc22831180dca3ac80b8c02407bf41c7abfb6dbe8e72b715c20c7824c3fc1e98b166ed844a586d5ef6b97a977372c8d01783563
7
- data.tar.gz: 0492172f5127a14e2f0ff53c60fe23a591a57687f70beb6dd9994d4646a4234cd74cb34648ed415c27b6649186e8afb4fda026353025cf06c7f3a08e52d5fc63
6
+ metadata.gz: 1e45ea05cbbb26bebb567c1462026648a980a0f4dde7bc0b5bad0093c85459a01e28d7ab5dcf7dd5edd72597e25ae742e455fc8973f2d55aef750c96e4f02a26
7
+ data.tar.gz: 9f27f7a7a11484da1548c838553e8d5b08249e405491d7d30f8f96a91d4e2351efa40a21e091d1395253deb6ccb8c29322d4f0f9c4ab09e653d17bdb94636369
@@ -84,16 +84,12 @@ module ForkingTestRunner
84
84
  private
85
85
 
86
86
  def toggle_minitest_autorun(value)
87
- begin
88
- require 'minitest/test' # only exists on > 5
87
+ klass = begin
88
+ require 'minitest/unit' # only exists on 4
89
+ MiniTest::Unit
89
90
  rescue LoadError
90
- require 'minitest/unit'
91
- end
92
- klass = if defined?(Minitest::Test)
91
+ require 'minitest/test' # exists on 5 and 4 with minitest-rails
93
92
  Minitest
94
- else
95
- # require 'minitest/unit'
96
- MiniTest::Unit
97
93
  end
98
94
  klass.class_variable_set("@@installed_at_exit", !value)
99
95
  klass.autorun if value
@@ -1,3 +1,3 @@
1
1
  module ForkingTestRunner
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forking_test_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser