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 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
- - bundle install
5
+ - gem install bundler
6
+ - gem install rake
7
+ - gem install appraisal
10
8
  before_script:
11
- - bundle exec rake appraisal:setup
9
+ - rake appraisal:setup
12
10
  script:
13
- - bundle exec rake appraisal test
11
+ - rake appraisal test
data/Appraisals CHANGED
@@ -13,4 +13,4 @@ end
13
13
 
14
14
  appraise 'rails40' do
15
15
  gem 'rails', '~> 4.0.0'
16
- end unless RUBY_VERSION =~ /1.8/
16
+ end
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ ## 4.7.6
3
+
4
+ * Fix nested described test names. Fixes #21.
5
+
6
+
2
7
  ## 4.7.5
3
8
 
4
9
  * Fixed gemspec using '>= 3.0', '< 4.1'. Fixed #35.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = "4.7.5"
2
+ VERSION = "4.7.6"
3
3
  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
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-04 00:00:00.000000000 Z
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: -4289551741557045566
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: -4289551741557045566
215
+ hash: -3523604649585152209
216
216
  version: '0'
217
217
  none: false
218
218
  requirements: []