minitest-spec-rails 4.3.6 → 4.3.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ ## v4.3.7
3
+
4
+ * Fix helper test bug where calling methods in first context block blew up. Fixes #13.
5
+
6
+
2
7
  ## v4.3.6
3
8
 
4
9
  * Only require the freedom patches and autorun when Rails.env.test?
data/README.md CHANGED
@@ -8,6 +8,7 @@ Rails 4 was on its way to using MiniTest::Spec as the superclass for ActiveSuppo
8
8
 
9
9
  The minitest-spec-rails gem makes it easy to use the MiniTest::Spec DSL within your existing Rails 3 or 4 test suite. It does this by forcing ActiveSupport::TestCase to subclass MiniTest::Spec.
10
10
 
11
+ [![Gem Version](https://badge.fury.io/rb/minitest-spec-rails.png)](http://badge.fury.io/rb/minitest-spec-rails)
11
12
  [![Build Status](https://secure.travis-ci.org/metaskills/minitest-spec-rails.png)](http://travis-ci.org/metaskills/minitest-spec-rails)
12
13
  [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/metaskills/minitest-spec-rails)
13
14
 
@@ -28,6 +28,7 @@ module MiniTestSpecRails
28
28
 
29
29
  def setup_minitest_spec_rails_helper_class
30
30
  self.class.helper_class = described_class
31
+ self.class.send :include_helper_modules!
31
32
  end
32
33
 
33
34
  end
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = "4.3.6"
2
+ VERSION = "4.3.7"
3
3
  end
@@ -0,0 +1,5 @@
1
+ module FoosHelper
2
+ def passes
3
+ true
4
+ end
5
+ end
@@ -0,0 +1,12 @@
1
+ require 'test_helper_dummy'
2
+
3
+ class FoosHelperTest < ActionView::TestCase
4
+
5
+ describe 'level1' do
6
+ it 'works for helper method called in describe block' do
7
+ assert passes
8
+ end
9
+ end
10
+
11
+ end
12
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-spec-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.6
4
+ version: 4.3.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-20 00:00:00.000000000 Z
12
+ date: 2013-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -155,6 +155,7 @@ files:
155
155
  - test/dummy_app/app/controllers/application_controller.rb
156
156
  - test/dummy_app/app/controllers/users_controller.rb
157
157
  - test/dummy_app/app/helpers/application_helper.rb
158
+ - test/dummy_app/app/helpers/foos_helper.rb
158
159
  - test/dummy_app/app/helpers/users_helper.rb
159
160
  - test/dummy_app/app/mailers/user_mailer.rb
160
161
  - test/dummy_app/app/models/post.rb
@@ -165,6 +166,7 @@ files:
165
166
  - test/dummy_app/init.rb
166
167
  - test/dummy_app/tmp/.gitkeep
167
168
  - test/dummy_tests/application_controller_test.rb
169
+ - test/dummy_tests/foo_helper_test.rb
168
170
  - test/dummy_tests/integration_test.rb
169
171
  - test/dummy_tests/user_mailer_test.rb
170
172
  - test/dummy_tests/user_test.rb
@@ -188,7 +190,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
190
  version: '0'
189
191
  segments:
190
192
  - 0
191
- hash: -4017184402848978979
193
+ hash: 4327642804086337401
192
194
  required_rubygems_version: !ruby/object:Gem::Requirement
193
195
  none: false
194
196
  requirements:
@@ -197,10 +199,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
199
  version: '0'
198
200
  segments:
199
201
  - 0
200
- hash: -4017184402848978979
202
+ hash: 4327642804086337401
201
203
  requirements: []
202
204
  rubyforge_project:
203
- rubygems_version: 1.8.24
205
+ rubygems_version: 1.8.25
204
206
  signing_key:
205
207
  specification_version: 3
206
208
  summary: Make Rails Use MiniTest::Spec!
@@ -215,6 +217,7 @@ test_files:
215
217
  - test/dummy_app/app/controllers/application_controller.rb
216
218
  - test/dummy_app/app/controllers/users_controller.rb
217
219
  - test/dummy_app/app/helpers/application_helper.rb
220
+ - test/dummy_app/app/helpers/foos_helper.rb
218
221
  - test/dummy_app/app/helpers/users_helper.rb
219
222
  - test/dummy_app/app/mailers/user_mailer.rb
220
223
  - test/dummy_app/app/models/post.rb
@@ -225,6 +228,7 @@ test_files:
225
228
  - test/dummy_app/init.rb
226
229
  - test/dummy_app/tmp/.gitkeep
227
230
  - test/dummy_tests/application_controller_test.rb
231
+ - test/dummy_tests/foo_helper_test.rb
228
232
  - test/dummy_tests/integration_test.rb
229
233
  - test/dummy_tests/user_mailer_test.rb
230
234
  - test/dummy_tests/user_test.rb