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 CHANGED
@@ -1,6 +1,7 @@
1
1
  rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
+ - 2.1.0
4
5
  install:
5
6
  - gem install bundler
6
7
  - bundle --version
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ ## 5.0.2
3
+
4
+ * Fixed initialization callbacks for latest Rails 4.1. Fixes #39.
5
+
6
+
2
7
  ## 5.0.1
3
8
 
4
9
  * Change initialization so that ActiveSupport always comes first.
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
- * Compatability with ActiveSupport::TestCase's setup and teardowns.
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
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = "5.0.1"
2
+ VERSION = "5.0.2"
3
3
  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.1
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: 2013-12-12 00:00:00.000000000 Z
12
+ date: 2014-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest