minitest-spec-rails 5.0.0 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,26 @@
1
1
 
2
+ ## 5.0.1
3
+
4
+ * Change initialization so that ActiveSupport always comes first.
5
+
6
+
2
7
  ## 5.0.0
3
8
 
4
- * Minitest 5.x and Rails 4.x compatability. Fixes #36.
9
+ * Minitest 5.x and Rails 4.1 compatability. Fixes #36.
5
10
  * Fix nested described test names along with Minitest::Spec.describe_stack. Fixed #21.
6
11
  * Leverage `ActiveSupport::Testing::ConstantLookup` for our `described_class` interface.
7
12
 
8
13
 
14
+ ## 4.7.6
15
+
16
+ * Fix nested described test names. Fixes #21.
17
+
18
+
19
+ ## 4.7.5
20
+
21
+ * Fixed gemspec using '>= 3.0', '< 4.1'. Fixed #35.
22
+
23
+
9
24
  ## 4.7.4
10
25
 
11
26
  * Enforces case sensitivity on registered spec types. Fixes #26.
@@ -5,25 +5,24 @@ module MiniTestSpecRails
5
5
  config.minitest_spec_rails.mini_shoulda = false
6
6
 
7
7
  config.before_initialize do |app|
8
- if Rails.env.test?
9
- ActiveSupport.on_load(:action_view) do
10
- require 'minitest-spec-rails/init/action_view'
11
- end
12
- ActiveSupport.on_load(:action_controller) do
13
- require 'minitest-spec-rails/init/action_controller'
14
- require 'minitest-spec-rails/init/action_dispatch'
15
- end
16
- ActiveSupport.on_load(:action_mailer) do
17
- require 'minitest-spec-rails/init/action_mailer'
18
- end
8
+ return unless Rails.env.test?
9
+ require 'active_support'
10
+ require 'minitest-spec-rails/init/active_support'
11
+ ActiveSupport.on_load(:action_view) do
12
+ require 'minitest-spec-rails/init/action_view'
13
+ end
14
+ ActiveSupport.on_load(:action_controller) do
15
+ require 'minitest-spec-rails/init/action_controller'
16
+ require 'minitest-spec-rails/init/action_dispatch'
17
+ end
18
+ ActiveSupport.on_load(:action_mailer) do
19
+ require 'minitest-spec-rails/init/action_mailer'
19
20
  end
20
21
  end
21
22
 
22
- initializer 'minitest-spec-rails.after.load_active_support', :after => :load_active_support, :group => :all do |app|
23
- if Rails.env.test?
24
- require 'minitest-spec-rails/init/active_support'
25
- require 'minitest-spec-rails/init/mini_shoulda' if app.config.minitest_spec_rails.mini_shoulda
26
- end
23
+ initializer 'minitest-spec-rails.mini_shoulda', :group => :all do |app|
24
+ return unless Rails.env.test?
25
+ require 'minitest-spec-rails/init/mini_shoulda' if app.config.minitest_spec_rails.mini_shoulda
27
26
  end
28
27
 
29
28
  end
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = "5.0.0"
2
+ VERSION = "5.0.1"
3
3
  end
metadata CHANGED
@@ -2,18 +2,17 @@
2
2
  name: minitest-spec-rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 5.0.0
5
+ version: 5.0.1
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-27 00:00:00.000000000 Z
12
+ date: 2013-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
16
- type: :runtime
17
16
  requirement: !ruby/object:Gem::Requirement
18
17
  requirements:
19
18
  - - ~>
@@ -27,9 +26,9 @@ dependencies:
27
26
  version: '5.0'
28
27
  none: false
29
28
  prerelease: false
29
+ type: :runtime
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rails
32
- type: :runtime
33
32
  requirement: !ruby/object:Gem::Requirement
34
33
  requirements:
35
34
  - - ! '>='
@@ -49,9 +48,9 @@ dependencies:
49
48
  version: '5.0'
50
49
  none: false
51
50
  prerelease: false
51
+ type: :runtime
52
52
  - !ruby/object:Gem::Dependency
53
53
  name: appraisal
54
- type: :development
55
54
  requirement: !ruby/object:Gem::Requirement
56
55
  requirements:
57
56
  - - ! '>='
@@ -65,9 +64,9 @@ dependencies:
65
64
  version: '0'
66
65
  none: false
67
66
  prerelease: false
67
+ type: :development
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: guard-minitest
70
- type: :development
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - ! '>='
@@ -81,9 +80,9 @@ dependencies:
81
80
  version: '0'
82
81
  none: false
83
82
  prerelease: false
83
+ type: :development
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rake
86
- type: :development
87
86
  requirement: !ruby/object:Gem::Requirement
88
87
  requirements:
89
88
  - - ! '>='
@@ -97,9 +96,9 @@ dependencies:
97
96
  version: '0'
98
97
  none: false
99
98
  prerelease: false
99
+ type: :development
100
100
  - !ruby/object:Gem::Dependency
101
101
  name: sqlite3
102
- type: :development
103
102
  requirement: !ruby/object:Gem::Requirement
104
103
  requirements:
105
104
  - - ! '>='
@@ -113,6 +112,7 @@ dependencies:
113
112
  version: '0'
114
113
  none: false
115
114
  prerelease: false
115
+ type: :development
116
116
  description: The minitest-spec-rails gem makes it easy to use the MiniTest::Spec DSL
117
117
  within your existing Rails 3 or 4 test suite.
118
118
  email:
@@ -184,18 +184,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - ! '>='
186
186
  - !ruby/object:Gem::Version
187
- segments:
188
- - 0
189
- hash: 1614700249652429309
190
187
  version: '0'
191
188
  none: false
192
189
  required_rubygems_version: !ruby/object:Gem::Requirement
193
190
  requirements:
194
191
  - - ! '>='
195
192
  - !ruby/object:Gem::Version
196
- segments:
197
- - 0
198
- hash: 1614700249652429309
199
193
  version: '0'
200
194
  none: false
201
195
  requirements: []
@@ -237,3 +231,4 @@ test_files:
237
231
  - test/support/shared_test_case_behavior.rb
238
232
  - test/test_helper.rb
239
233
  - test/test_helper_dummy.rb
234
+ has_rdoc: