minitest-spec-rails 5.0.2 → 5.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
- - 2.1.0
4
+ - 2.1.1
5
5
  install:
6
6
  - gem install bundler
7
7
  - bundle --version
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ ## 5.0.3
3
+
4
+ * Fixed ActionView load order & url helpers. Fixes #42.
5
+
6
+
2
7
  ## 5.0.2
3
8
 
4
9
  * Fixed initialization callbacks for latest Rails 4.1. Fixes #39.
@@ -6,7 +11,7 @@
6
11
 
7
12
  ## 5.0.1
8
13
 
9
- * Change initialization so that ActiveSupport always comes first.
14
+ * Change initialization so that ActiveSupport always comes first.
10
15
 
11
16
 
12
17
  ## 5.0.0
@@ -134,4 +139,4 @@
134
139
 
135
140
  ## v3.0.0
136
141
 
137
- * Initial Release, targeted to Rails 3.x.
142
+ * Initial Release, targeted to Rails 3.x.
data/Gemfile CHANGED
@@ -2,6 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'rails', github: 'rails/rails'
6
- gem 'arel', github: 'rails/arel'
7
-
@@ -1,16 +1,13 @@
1
1
  module MiniTestSpecRails
2
2
  class Railtie < ::Rails::Railtie
3
-
3
+
4
4
  config.minitest_spec_rails = ActiveSupport::OrderedOptions.new
5
5
  config.minitest_spec_rails.mini_shoulda = false
6
-
6
+
7
7
  config.before_initialize do |app|
8
8
  require 'active_support'
9
9
  require 'minitest-spec-rails/init/active_support'
10
- ActiveSupport.on_load(:action_view) do
11
- require 'minitest-spec-rails/init/action_view'
12
- end
13
- ActiveSupport.on_load(:action_controller) do
10
+ ActiveSupport.on_load(:action_controller) do
14
11
  require 'minitest-spec-rails/init/action_controller'
15
12
  require 'minitest-spec-rails/init/action_dispatch'
16
13
  end
@@ -19,9 +16,13 @@ module MiniTestSpecRails
19
16
  end
20
17
  end if Rails.env.test?
21
18
 
19
+ initializer 'minitest-spec-rails.action_view', :after => 'action_view.setup_action_pack', :group => :all do |app|
20
+ require 'minitest-spec-rails/init/action_view'
21
+ end if Rails.env.test?
22
+
22
23
  initializer 'minitest-spec-rails.mini_shoulda', :group => :all do |app|
23
24
  require 'minitest-spec-rails/init/mini_shoulda' if app.config.minitest_spec_rails.mini_shoulda
24
25
  end if Rails.env.test?
25
-
26
+
26
27
  end
27
28
  end
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = "5.0.2"
2
+ VERSION = "5.0.3"
3
3
  end
@@ -17,9 +17,8 @@ Gem::Specification.new do |gem|
17
17
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  gem.require_paths = ['lib']
19
19
  gem.add_runtime_dependency 'minitest', '~> 5.0'
20
- gem.add_runtime_dependency 'rails', '>= 4.1.0.beta', '< 5.0'
20
+ gem.add_runtime_dependency 'rails', '~> 4.1.0.rc2'
21
21
  gem.add_development_dependency 'appraisal'
22
- gem.add_development_dependency 'guard-minitest'
23
22
  gem.add_development_dependency 'rake'
24
23
  gem.add_development_dependency 'sqlite3'
25
24
  end
@@ -1,12 +1,11 @@
1
- ENV['RAILS_ENV'] = 'test'
2
- require 'rubygems'
1
+ ENV["RAILS_ENV"] ||= "test"
3
2
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __FILE__)
4
3
  require 'bundler/setup'
5
4
  require 'rails/all'
6
- Bundler.require :default, :development, :test
5
+ Bundler.require(:default, Rails.env)
7
6
 
8
7
  module Dummy
9
- class Application < ::Rails::Application
8
+ class Application < ::Rails::Application
10
9
 
11
10
  # Basic Engine
12
11
  config.root = File.join __FILE__, '..'
@@ -22,21 +21,18 @@ module Dummy
22
21
  config.action_controller.allow_forgery_protection = false
23
22
  config.action_mailer.delivery_method = :test
24
23
  config.active_support.deprecation = :stderr
25
- if Rails.version < '4.0'
26
- config.threadsafe!
27
- else
28
- config.allow_concurrency = true
29
- config.cache_classes = true
30
- config.dependency_loading = true
31
- config.preload_frameworks = true
32
- config.eager_load = true
33
- config.secret_key_base = '012345678901234567890123456789'
34
- end
24
+ config.allow_concurrency = true
25
+ config.cache_classes = true
26
+ config.dependency_loading = true
27
+ config.preload_frameworks = true
28
+ config.eager_load = true
29
+ config.secret_key_base = '012345678901234567890123456789'
35
30
 
36
31
  # Custom
37
32
  config.minitest_spec_rails.mini_shoulda = true
38
-
33
+
39
34
  end
40
35
  end
41
36
 
42
37
  Dummy::Application.initialize!
38
+ require 'rails/test_help'
data/test/test_helper.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'dummy_app/init'
2
- require 'support/minitest'
3
2
  require 'support/shared_test_case_behavior'
4
3
 
5
4
  module MiniTestSpecRails
@@ -7,6 +6,6 @@ module MiniTestSpecRails
7
6
 
8
7
  include MiniTestSpecRails::SharedTestCaseBehavior
9
8
 
10
-
9
+
11
10
  end
12
11
  end
@@ -1,10 +1,9 @@
1
1
  require 'test_helper'
2
- require 'rails/test_help'
3
2
 
4
3
  class ActiveSupport::TestCase
5
4
 
6
5
  fixtures :all
7
6
  include MiniTestSpecRails::SharedTestCaseBehavior
8
-
9
-
7
+
8
+
10
9
  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: 5.0.2
5
+ version: 5.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ken Collins
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-07 00:00:00.000000000 Z
12
+ date: 2014-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -31,21 +31,15 @@ dependencies:
31
31
  name: rails
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ! '>='
35
- - !ruby/object:Gem::Version
36
- version: 4.1.0.beta
37
- - - <
34
+ - - ~>
38
35
  - !ruby/object:Gem::Version
39
- version: '5.0'
36
+ version: 4.1.0.rc2
40
37
  none: false
41
38
  version_requirements: !ruby/object:Gem::Requirement
42
39
  requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: 4.1.0.beta
46
- - - <
40
+ - - ~>
47
41
  - !ruby/object:Gem::Version
48
- version: '5.0'
42
+ version: 4.1.0.rc2
49
43
  none: false
50
44
  prerelease: false
51
45
  type: :runtime
@@ -65,22 +59,6 @@ dependencies:
65
59
  none: false
66
60
  prerelease: false
67
61
  type: :development
68
- - !ruby/object:Gem::Dependency
69
- name: guard-minitest
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - ! '>='
73
- - !ruby/object:Gem::Version
74
- version: '0'
75
- none: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - ! '>='
79
- - !ruby/object:Gem::Version
80
- version: '0'
81
- none: false
82
- prerelease: false
83
- type: :development
84
62
  - !ruby/object:Gem::Dependency
85
63
  name: rake
86
64
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +104,6 @@ files:
126
104
  - Appraisals
127
105
  - CHANGELOG.md
128
106
  - Gemfile
129
- - Guardfile
130
107
  - MIT-LICENSE
131
108
  - README.md
132
109
  - Rakefile
@@ -162,14 +139,13 @@ files:
162
139
  - test/dummy_app/lib/library.rb
163
140
  - test/dummy_app/tmp/.gitkeep
164
141
  - test/dummy_tests/application_controller_test.rb
165
- - test/dummy_tests/foo_helper_test.rb
142
+ - test/dummy_tests/foos_helper_test.rb
166
143
  - test/dummy_tests/integration_test.rb
167
144
  - test/dummy_tests/library_test.rb
168
145
  - test/dummy_tests/user_mailer_test.rb
169
146
  - test/dummy_tests/user_test.rb
170
147
  - test/dummy_tests/users_controller_test.rb
171
148
  - test/dummy_tests/users_helper_test.rb
172
- - test/support/minitest.rb
173
149
  - test/support/shared_test_case_behavior.rb
174
150
  - test/test_helper.rb
175
151
  - test/test_helper_dummy.rb
@@ -220,15 +196,13 @@ test_files:
220
196
  - test/dummy_app/lib/library.rb
221
197
  - test/dummy_app/tmp/.gitkeep
222
198
  - test/dummy_tests/application_controller_test.rb
223
- - test/dummy_tests/foo_helper_test.rb
199
+ - test/dummy_tests/foos_helper_test.rb
224
200
  - test/dummy_tests/integration_test.rb
225
201
  - test/dummy_tests/library_test.rb
226
202
  - test/dummy_tests/user_mailer_test.rb
227
203
  - test/dummy_tests/user_test.rb
228
204
  - test/dummy_tests/users_controller_test.rb
229
205
  - test/dummy_tests/users_helper_test.rb
230
- - test/support/minitest.rb
231
206
  - test/support/shared_test_case_behavior.rb
232
207
  - test/test_helper.rb
233
208
  - test/test_helper_dummy.rb
234
- has_rdoc:
data/Guardfile DELETED
@@ -1,7 +0,0 @@
1
- guard 'minitest' do
2
- watch(%r|^lib/minitest-spec-rails/init/(.*)\.rb|) { |m| "test/cases/#{m[1]}_test.rb" }
3
- watch(%r|^test/test_helper\.rb|) { "test" }
4
- watch(%r|^test/test_helper_dummy\.rb|) { "test" }
5
- watch(%r|^test/cases/(.*)_test\.rb|)
6
- watch(%r|^test/dummy_tests/(.*)_test\.rb|)
7
- end
@@ -1 +0,0 @@
1
-