minitest-given 3.6.0 → 3.7.0

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: ca2121241515d109726c7305514f84ade99a5411
4
- data.tar.gz: b711c3dc935f472e88c8dc8c4cd3b0dc1c53c4f2
3
+ metadata.gz: aa21ad961fcb26d8049ba62734d6026114d9f3f4
4
+ data.tar.gz: 3e082bc1ec7468b205c204384315c7da845fa03c
5
5
  SHA512:
6
- metadata.gz: 9b26fbd9e5c54f0801d2cb8e03ef64671689f7798adf075ac47d359af518c4db73bfd28785f0390bffc7a9b85de60a73c0192a921a3fb4f48ea634afb9bcfd60
7
- data.tar.gz: 4dfb410a738e8b27ba546991f3cb418826a949f7b016ac31cfbfe1253b6ac085ba1b6ac16dd69cbe1eaef99aff0024d0914c2369a4a875a61b28419303e7bea1
6
+ metadata.gz: 6819cb252f5bd2a2cefa76e931958f200964db3e799096ed71ee07a5e5eec54e337536de5b4aec86eacdd9cd8cd033d739ab7813daeb83c7e56c2d3591532baa
7
+ data.tar.gz: bb328c179e705ff0a9f5aa53aee0be38087503cd65ae11a246c6a99bbdf8a2578d538d376a2b327aa653fc5892bc40f217b247da69bc6e0b908b6789c5bd626d
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  | :----: |
5
5
  | [![Master Build Status](https://secure.travis-ci.org/rspec-given/rspec-given.png?branch=master)](https://travis-ci.org/rspec-given/rspec-given) |
6
6
 
7
- Covering rspec-given, minitest-given, and given-core, version 3.6.0.
7
+ Covering rspec-given, minitest-given, and given-core, version 3.7.0.
8
8
 
9
9
  rspec-given and minitest-given are extensions to your favorite testing
10
10
  framework to allow Given/When/Then notation when writing specs.
@@ -870,6 +870,10 @@ License. See the MIT-LICENSE file in the source distribution.
870
870
 
871
871
  # History
872
872
 
873
+ * Version 3.7.0
874
+
875
+ * Add support for Rails tests when using minitest-given (See [#6](https://github.com/rspec-given/rspec-given/pull/6))
876
+
873
877
  * Version 3.6.0
874
878
 
875
879
  * Various fixes for RSpec 3.0 (See [#1](https://github.com/rspec-given/rspec-given/pull/1))
@@ -6,4 +6,4 @@
6
6
  #
7
7
  # Thanks.
8
8
 
9
- require 'given/minitest/all'
9
+ require 'minitest/given'
@@ -1 +1,15 @@
1
- require 'given/minitest/all'
1
+ require 'minitest/spec'
2
+
3
+ if defined?(ActiveSupport::TestCase)
4
+ Minitest::Spec.tap do |original_spec|
5
+ Minitest.send(:remove_const, :Spec)
6
+ Minitest::Spec = ActiveSupport::TestCase
7
+
8
+ require 'given/minitest/all'
9
+
10
+ Minitest.send(:remove_const, :Spec)
11
+ Minitest::Spec = original_spec
12
+ end
13
+ else
14
+ require 'given/minitest/all'
15
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-given
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-09 00:00:00.000000000 Z
11
+ date: 2015-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: given_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.6.0
19
+ version: 3.7.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.6.0
26
+ version: 3.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement