minitest-spec-rails 4.7.5 → 4.7.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +5 -7
- data/Appraisals +1 -1
- data/CHANGELOG.md +5 -0
- data/lib/minitest-spec-rails/dsl.rb +7 -0
- data/lib/minitest-spec-rails/version.rb +1 -1
- data/test/cases/active_support_test.rb +17 -1
- metadata +4 -4
data/.travis.yml
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
rvm:
|
2
|
-
- 1.8.7
|
3
2
|
- 1.9.3
|
4
3
|
- 2.0.0
|
5
|
-
before_install:
|
6
|
-
- gem install bundler
|
7
|
-
- bundle --version
|
8
4
|
install:
|
9
|
-
-
|
5
|
+
- gem install bundler
|
6
|
+
- gem install rake
|
7
|
+
- gem install appraisal
|
10
8
|
before_script:
|
11
|
-
-
|
9
|
+
- rake appraisal:setup
|
12
10
|
script:
|
13
|
-
-
|
11
|
+
- rake appraisal test
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,13 @@ module MiniTestSpecRails
|
|
10
10
|
|
11
11
|
module ClassMethods
|
12
12
|
|
13
|
+
def describe(*args, &block)
|
14
|
+
stack = Minitest::Spec.describe_stack
|
15
|
+
stack.push self if stack.empty?
|
16
|
+
super(*args) { class_eval(&block) }
|
17
|
+
stack.pop if stack.length == 1
|
18
|
+
end
|
19
|
+
|
13
20
|
def before(type = nil, &block)
|
14
21
|
setup { self.instance_eval(&block) }
|
15
22
|
end
|
@@ -40,4 +40,20 @@ class ActiveSupportCallbackTest < ActiveSupport::TestCase
|
|
40
40
|
def foo ; @foo = 'foo' ; end
|
41
41
|
def bar ; @bar = 'bar' ; end
|
42
42
|
|
43
|
-
end
|
43
|
+
end
|
44
|
+
|
45
|
+
class ActiveSupportDescribeNamesTest < ActiveSupport::TestCase
|
46
|
+
it 'class name' do
|
47
|
+
assert_equal 'ActiveSupportDescribeNamesTest', self.class.name
|
48
|
+
end
|
49
|
+
describe 'level1' do
|
50
|
+
it 'haz name' do
|
51
|
+
assert_equal 'ActiveSupportDescribeNamesTest::level1', self.class.name
|
52
|
+
end
|
53
|
+
describe 'level2' do
|
54
|
+
it 'haz name' do
|
55
|
+
assert_equal 'ActiveSupportDescribeNamesTest::level1::level2', self.class.name
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: minitest-spec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 4.7.
|
5
|
+
version: 4.7.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ken Collins
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
203
|
- !ruby/object:Gem::Version
|
204
204
|
segments:
|
205
205
|
- 0
|
206
|
-
hash: -
|
206
|
+
hash: -3523604649585152209
|
207
207
|
version: '0'
|
208
208
|
none: false
|
209
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
- !ruby/object:Gem::Version
|
213
213
|
segments:
|
214
214
|
- 0
|
215
|
-
hash: -
|
215
|
+
hash: -3523604649585152209
|
216
216
|
version: '0'
|
217
217
|
none: false
|
218
218
|
requirements: []
|