test-unit-rails 5.0.5 → 5.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ce3a015131207be39b431bb04d876ac71bd0b50
4
- data.tar.gz: 17ea63fd4e89cd59d257ea23ed87256f640344f9
3
+ metadata.gz: d09214684384ef1813ada6af30fde98a7a7c8d4a
4
+ data.tar.gz: 555a31e62642852a04057e6c74fb9ec743aa3e45
5
5
  SHA512:
6
- metadata.gz: 7de7a344db036eef59369a6268cf9ce62dcb213bc3ed10cf03bc9cf5f8edf72ec182b34cac624b2e51d8473b169e40524ef48eefea36cb7b3d33b8e64c87b84c
7
- data.tar.gz: 330c6c16f48d44c85e7fdf99ce840944a22c44044b321680872d51342d1ae683e1c1a2fb35054c8432a4cf522d5c4ef1b1200f04a3dc1813cff20d066e849140
6
+ metadata.gz: 741cf66e14ae012c72cb939bfe2bc27264b4e279a19df548218881c65a389a27fbf8b5e46af0f5b035119a7fd431cf5d4b2cbe2916d4d771aaed97ed918c43d2
7
+ data.tar.gz: e9d0fb0436007a6e761c9ef8ae1f58f0d002f148e8f1ad57441568212321f828d3c09ba21b0eb6ec5b4bcefa893b63251c1b99201ce40aecae10580eab4d8eca
data/README.md CHANGED
@@ -4,34 +4,34 @@
4
4
 
5
5
  ## Description
6
6
 
7
- test-unit-rails is a Rails adapter for test-unit 3. You can use full test-unit 3 features, [RR](https://rubygems.org/gems/rr) integration and [Capybara](https://rubygems.org/gems/capybara) integration with test-unit-rails.
7
+ test-unit-rails is a Rails adapter for test-unit gem. You can use full test-unit gem features, [RR](https://rubygems.org/gems/rr) integration and [Capybara](https://rubygems.org/gems/capybara) integration with test-unit-rails.
8
8
 
9
- Rails supports Test::Unit bundled in Ruby 1.8 and MiniTest but doesn't support test-unit 2. Rails with test-unit 2 works but is not fully worked.
9
+ Rails supports Minitest but doesn't support test-unit.
10
10
 
11
11
  ## Install
12
12
 
13
13
  Add the following codes to your Gemfile:
14
14
 
15
- <pre>
15
+ ```ruby
16
16
  group :development, :test do
17
17
  gem 'test-unit-rails'
18
18
  end
19
- </pre>
19
+ ```
20
20
 
21
21
  Update bundled gems:
22
22
 
23
- <pre>
23
+ ```sh
24
24
  % bundle update
25
- </pre>
25
+ ```
26
26
 
27
- Replace @"require 'rails/test_help'"@ in your test/test_helper.rb with the following codes:
27
+ Replace `"require 'rails/test_help'"` in your test/test_helper.rb with the following codes:
28
28
 
29
- <pre>
29
+ ```ruby
30
30
  # require 'rails/test_help'
31
31
  require 'test/unit/rails/test_help'
32
- </pre>
32
+ ```
33
33
 
34
- Now you can use full test-unit 3.x features, RR integration and Capybara integration.
34
+ Now you can use full test-unit gem features, RR integration and Capybara integration.
35
35
 
36
36
  ## License
37
37
 
@@ -1,6 +1,25 @@
1
1
  # News
2
2
 
3
- ## 5.0.5 - 2016-12-20 {#version-5-0-}
3
+ ## 5.1.2 - 2017-07-05 {#version-5-1-2}
4
+
5
+ ### Improvements
6
+
7
+ * Updated document.
8
+ [GitHub#12][Patch by Haruka Yoshihara]
9
+
10
+ * Migrated document markup to Markdown from Textile.
11
+ [GitHub#13][Patch by Haruka Yoshihara]
12
+
13
+ * Supported Rails 5.1.2.
14
+ [GitHub#14][Reported by naofumi-fujii]
15
+
16
+ ### Thanks
17
+
18
+ * Haruka Yoshihara
19
+
20
+ * naofumi-fujii
21
+
22
+ ## 5.0.5 - 2016-12-20 {#version-5-0-5}
4
23
 
5
24
  ### Improvements
6
25
 
@@ -77,11 +96,11 @@ Bug fixes release.
77
96
 
78
97
  ### Fixes
79
98
 
80
- * Used the correct class to be extended for running tests by @Test::Unit@ .
81
- @ActiveSupport::TestCase@ is used now but before @Test::Unit::TestCase@ was.
82
- @ActiveSupport::TestCase@ (but @TestUnit::TestCase@ ) is inherited
83
- by @ActionController::TestCase@ (for controller tests) and
84
- @ActionDispatch::IntegrationTest@ (for integration tests).
99
+ * Used the correct class to be extended for running tests by `Test::Unit` .
100
+ `ActiveSupport::TestCase` is used now but before `Test::Unit::TestCase` was.
101
+ `ActiveSupport::TestCase` (but `TestUnit::TestCase` ) is inherited
102
+ by `ActionController::TestCase` (for controller tests) and
103
+ `ActionDispatch::IntegrationTest` (for integration tests).
85
104
 
86
105
  ## 1.0.3 - 2014-09-04 {#version-1-0-3}
87
106
 
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2017 Kouhei Sutou <kou@clear-code.com>
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -14,13 +14,24 @@
14
14
  # License along with this library; if not, write to the Free Software
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
+ require "rails/command"
17
18
  require "test/unit/autorunner"
18
19
 
19
- if defined?(ENGINE_ROOT)
20
- $LOAD_PATH << File.expand_path("test", ENGINE_ROOT)
21
- else
22
- $LOAD_PATH << File.expand_path("../../test", APP_PATH)
23
- end
20
+ module Rails
21
+ module Command
22
+ class TestCommand < Base
23
+ no_commands do
24
+ def help
25
+ perform
26
+ end
27
+ end
28
+
29
+ def perform(*)
30
+ $LOAD_PATH << Rails::Command.root.join("test").to_s
24
31
 
25
- ARGV.unshift("--default-test-path=test")
26
- exit(Test::Unit::AutoRunner.run(true))
32
+ ARGV.unshift("--default-test-path=test")
33
+ exit(Test::Unit::AutoRunner.run(true))
34
+ end
35
+ end
36
+ end
37
+ end
@@ -1,6 +1,4 @@
1
- # -*- coding: utf-8 -*-
2
- #
3
- # Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
4
2
  #
5
3
  # This library is free software; you can redistribute it and/or
6
4
  # modify it under the terms of the GNU Lesser General Public
@@ -28,6 +26,15 @@ require "test/unit/capybara"
28
26
  require "test/unit/assertion-failed-error"
29
27
 
30
28
  require "capybara/rails"
29
+ require "capybara/minitest"
30
+ module Capybara
31
+ remove_const(:Minitest)
32
+ module Minitest
33
+ module Assertions
34
+ end
35
+ end
36
+ end
37
+
31
38
  require "active_support/testing/constant_lookup"
32
39
  require "action_controller"
33
40
  require "action_controller/test_case"
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -17,7 +17,7 @@
17
17
  module Test
18
18
  module Unit
19
19
  module Rails
20
- VERSION = "5.0.5"
20
+ VERSION = "5.1.2"
21
21
  end
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.5
4
+ version: 5.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-20 00:00:00.000000000 Z
11
+ date: 2017-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.2
19
+ version: 5.1.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.2
26
+ version: 5.1.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: test-unit-activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: RedCloth
140
+ name: kramdown
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
@@ -164,8 +164,7 @@ dependencies:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
- description: 'Rails supports Test::Unit bundled in Ruby 1.8 and MiniTest but doesn''t
168
- support test-unit 2. Rails with test-unit 2 works but is not fully worked.
167
+ description: 'Rails supports Minitest but doesn''t support test-unit.
169
168
 
170
169
  '
171
170
  email:
@@ -179,7 +178,7 @@ files:
179
178
  - README.md
180
179
  - Rakefile
181
180
  - doc/text/news.md
182
- - lib/rails/commands/test.rb
181
+ - lib/rails/commands/test/test_command.rb
183
182
  - lib/test/unit/rails.rb
184
183
  - lib/test/unit/rails/railtie.rb
185
184
  - lib/test/unit/rails/test_help.rb
@@ -212,8 +211,8 @@ rubyforge_project:
212
211
  rubygems_version: 2.5.2
213
212
  signing_key:
214
213
  specification_version: 4
215
- summary: test-unit-rails is a Rails adapter for test-unit 3. You can use full test-unit
216
- 3 features, [RR](https://rubygems.org/gems/rr) integration and [Capybara](https://rubygems.org/gems/capybara)
214
+ summary: test-unit-rails is a Rails adapter for test-unit gem. You can use full test-unit
215
+ gem features, [RR](https://rubygems.org/gems/rr) integration and [Capybara](https://rubygems.org/gems/capybara)
217
216
  integration with test-unit-rails.
218
217
  test_files:
219
218
  - test/test_action_controller.rb