minitest-rails 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3100bb4f8f43829d4b0aeef056d6cf66e4290af
4
- data.tar.gz: 22e53699768ec3403abc5e4aa62f9634d4abd3fb
3
+ metadata.gz: 60989eb015b55ae22f300fd82ab07ef1c1967d86
4
+ data.tar.gz: f706693ea5cfd171282560f9274ee5979c98083f
5
5
  SHA512:
6
- metadata.gz: 5836b46c9bfd99b8a471ff4f828f902c2087e7dca1b342cb5eccd0a6fea435e293665e6478ec8a86eac5874876cc19afcbdb02e767283210ae45729893e1bfc3
7
- data.tar.gz: 86f605ca671a8435fb6a4fcd5f1da75dcdfaa9a2aa88052e4bdc0aaff5b7966c77510a26c8f8dd32c36d63a7310272f80c29c808d644f8d23c16542e324a4722
6
+ metadata.gz: e3d0af03eb16580c77fca7f459246cda9d29366a615954ec63c1c2bb8148f322e7475452bfea2fa40a7b4f07e7d8f3d19a28bdc8c0650a9f29221b116a0140a6
7
+ data.tar.gz: e512e0a9891f681d4f6081ca9180e13a58c93f0be4ac98b38f78aefa1aa9f3cd4873f14536d8caf923773d817565c5b7552dc027de40f8c12940f57db1be44ea
@@ -1,3 +1,9 @@
1
+ === 2.0.1 / 2014-04-25
2
+
3
+ * Set RAILS_ENV in railtie (taq)
4
+
5
+ https://github.com/blowmage/minitest-rails/compare/v2.0.0...v2.0.1
6
+
1
7
  === 2.0.0 / 2014-04-21
2
8
 
3
9
  Major release, specific to Rails 4.1+ and Minitest 5.
@@ -15,9 +15,9 @@ This installs the following gems:
15
15
 
16
16
  == Configure
17
17
 
18
- Create a new rails app without Test::Unit:
18
+ Create a new rails app:
19
19
 
20
- rails new MyApp --skip-test-unit
20
+ rails new MyApp
21
21
 
22
22
  Add <tt>minitest-rails</tt> to the Gemfile:
23
23
 
@@ -1,12 +1,19 @@
1
+ if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^test(?::|$)/).any?
2
+ ENV['RAILS_ENV'] ||= 'test'
3
+ end
4
+
1
5
  require "rails"
2
6
 
3
7
  module Minitest
4
8
  module Rails
5
- class Railtie < ::Rails::Railtie # :nodoc:
6
- generators = config.respond_to?(:app_generators) ? config.app_generators : config.generators
7
- generators.integration_tool :minitest
8
- generators.test_framework :minitest
9
- generators.fallbacks[:minitest] = :test_unit
9
+ class Railtie < ::Rails::Railtie
10
+ config.app_generators do |c|
11
+ c.test_framework :minitest,
12
+ fixture: true,
13
+ fixture_replacement: nil
14
+ c.integration_tool :minitest
15
+ c.fallbacks[:minitest] = :test_unit
16
+ end
10
17
 
11
18
  rake_tasks do
12
19
  load "rails/test_unit/testing.rake"
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Rails
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: minitest-rails 2.0.0.20140421134437 ruby lib
2
+ # stub: minitest-rails 2.0.1.20140425105510 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "minitest-rails"
6
- s.version = "2.0.0.20140421134437"
6
+ s.version = "2.0.1.20140425105510"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
10
10
  s.authors = ["Mike Moore"]
11
- s.date = "2014-04-21"
11
+ s.date = "2014-04-25"
12
12
  s.description = "Adds Minitest as the default testing library in Rails"
13
13
  s.email = ["mike@blowmage.com"]
14
14
  s.extra_rdoc_files = ["CHANGELOG.rdoc", "Manifest.txt", "README.rdoc"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-21 00:00:00.000000000 Z
11
+ date: 2014-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest