minitest-spec-magic 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,16 @@
|
|
1
|
+
begin
|
2
|
+
require 'test/unit/testcase'
|
3
|
+
rescue LoadError
|
4
|
+
end
|
5
|
+
|
1
6
|
# Define Test::Unit::TestCase as a subclass of MiniTest::Spec
|
2
7
|
# Partially "stolen" from https://github.com/metaskills/mini_specunit
|
3
8
|
module Test
|
4
9
|
module Unit
|
10
|
+
|
11
|
+
# Remove original TestCase class
|
12
|
+
remove_const(:TestCase) if defined?(self::TestCase)
|
13
|
+
|
5
14
|
class TestCase < ::MiniTest::Spec
|
6
15
|
|
7
16
|
# Ensure ActiveSupport::TestCase::Declarative doesn't override MiniTest::Spec's `describe`
|
data/lib/minitest/spec/magic.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-spec-magic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,7 +15,7 @@ date: 2011-10-26 00:00:00.000000000Z
|
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: minitest
|
18
|
-
requirement: &
|
18
|
+
requirement: &19617100 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 2.6.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *19617100
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
|
-
requirement: &
|
29
|
+
requirement: &19616360 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *19616360
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: bundler
|
40
|
-
requirement: &
|
40
|
+
requirement: &19615640 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
@@ -45,15 +45,15 @@ dependencies:
|
|
45
45
|
version: '0'
|
46
46
|
type: :development
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *19615640
|
49
49
|
description: Combines Minitest::Spec with shoulda-like goodies
|
50
50
|
email: dimitrij@blacksquaremedia.com
|
51
51
|
executables: []
|
52
52
|
extensions: []
|
53
53
|
extra_rdoc_files: []
|
54
54
|
files:
|
55
|
-
- lib/test/unit/testcase.rb
|
56
55
|
- lib/minitest/spec/magic/controller.rb
|
56
|
+
- lib/minitest/spec/magic/testcase.rb
|
57
57
|
- lib/minitest/spec/magic/context.rb
|
58
58
|
- lib/minitest/spec/magic/expectations.rb
|
59
59
|
- lib/minitest/spec/magic/assertions.rb
|
@@ -70,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
70
|
requirements:
|
71
71
|
- - ! '>='
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: 1.
|
73
|
+
version: 1.9.2
|
74
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
75
|
none: false
|
76
76
|
requirements:
|