minitest-spec-rails 5.0.1 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +1 -0
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/minitest-spec-rails/railtie.rb +2 -4
- data/lib/minitest-spec-rails/version.rb +1 -1
- metadata +2 -2
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -60,7 +60,7 @@ To start off both Mike Moore (@blowmage) and I have worked together and we both
|
|
60
60
|
* Easy migration path for existing Rails applications.
|
61
61
|
* How we go about freedom patching Rails.
|
62
62
|
* Fully support Ruby 1.8.7 with all legacy Test::Unit behavior.
|
63
|
-
*
|
63
|
+
* Compatibility with ActiveSupport::TestCase's setup and teardowns.
|
64
64
|
|
65
65
|
So the goal of this project is to make Rails 3 or 4 applications just work as if rails-core had decided to support MiniTest::Spec all along. We believe that eventually that day will come and when it does, all your tests will still work! So bundle up and get started!
|
66
66
|
|
@@ -5,7 +5,6 @@ module MiniTestSpecRails
|
|
5
5
|
config.minitest_spec_rails.mini_shoulda = false
|
6
6
|
|
7
7
|
config.before_initialize do |app|
|
8
|
-
return unless Rails.env.test?
|
9
8
|
require 'active_support'
|
10
9
|
require 'minitest-spec-rails/init/active_support'
|
11
10
|
ActiveSupport.on_load(:action_view) do
|
@@ -18,12 +17,11 @@ module MiniTestSpecRails
|
|
18
17
|
ActiveSupport.on_load(:action_mailer) do
|
19
18
|
require 'minitest-spec-rails/init/action_mailer'
|
20
19
|
end
|
21
|
-
end
|
20
|
+
end if Rails.env.test?
|
22
21
|
|
23
22
|
initializer 'minitest-spec-rails.mini_shoulda', :group => :all do |app|
|
24
|
-
return unless Rails.env.test?
|
25
23
|
require 'minitest-spec-rails/init/mini_shoulda' if app.config.minitest_spec_rails.mini_shoulda
|
26
|
-
end
|
24
|
+
end if Rails.env.test?
|
27
25
|
|
28
26
|
end
|
29
27
|
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.
|
5
|
+
version: 5.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ken Collins
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|