test-unit-rails 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f98aaf8a7f9d6a6ca59c25ebe7b2ae042e3d8dd9
4
+ data.tar.gz: ed1415f008b8c4ee7ae82c5e6939ebd19651e3d2
5
+ SHA512:
6
+ metadata.gz: 6a80e454bb82195110759846b7c2f2040eb48181594498bed66e56084348c2f60991075c83a0277915df786992a6116434c4aa223d58b2df498c792731cc227b
7
+ data.tar.gz: 5b77127befb87561aeaaced0e86d360cf1acce6447eb745aa557235f3c0f2f9c23b155c8aca6df1ab3352dbd5b7c542f9eb71c206df927b5a3e5a614ce90205a
data/Gemfile CHANGED
@@ -16,6 +16,6 @@
16
16
  # License along with this library; if not, write to the Free Software
17
17
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
19
- source :rubygems
19
+ source "https://rubygems.org"
20
20
 
21
21
  gemspec
data/README.textile CHANGED
@@ -1,10 +1,10 @@
1
1
  h1. test-unit-rails
2
2
 
3
- "Web site":http://test-unit.rubyforge.org/#test-unit-rails
3
+ "Web site":http://test-unit.github.io/#test-unit-rails
4
4
 
5
5
  h2. Description
6
6
 
7
- test-unit-rails is a Rails adapter for test-unit 2. You can use full test-unit 2 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 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.
8
8
 
9
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.
10
10
 
@@ -31,7 +31,7 @@ Replace @"require 'rails/test_help'"@ in your test/test_helper.rb with the follo
31
31
  require 'test/unit/rails/test_help'
32
32
  </pre>
33
33
 
34
- Now you can use full test-unit 2.x features, RR integration and Capybara integration.
34
+ Now you can use full test-unit 3.x features, RR integration and Capybara integration.
35
35
 
36
36
  h2. License
37
37
 
@@ -42,3 +42,4 @@ LGPLv2.1 or later.
42
42
  h2. Authors
43
43
 
44
44
  * Kouhei Sutou
45
+ * Haruka Yoshihara
data/Rakefile CHANGED
@@ -40,7 +40,9 @@ Gem::PackageTask.new(spec) do |pkg|
40
40
  pkg.need_tar_gz = true
41
41
  end
42
42
 
43
- document_task = Packnga::DocumentTask.new(spec) do |t|
43
+ document_task = Packnga::DocumentTask.new(spec) do |task|
44
+ task.original_language = "en"
45
+ task.translate_language = "ja"
44
46
  end
45
47
 
46
48
  Packnga::ReleaseTask.new(spec) do |task|
@@ -1,5 +1,16 @@
1
1
  h1. News
2
2
 
3
+ h2(#1-0-3). 1.0.3 - 2014-09-04
4
+
5
+ h3. Improvements
6
+
7
+ * Supported Rails 4.0.0.
8
+ After this version, test-unit-rails requires test-unit-activesupport
9
+ 1.0.2 or later.
10
+ In this version, test-unit-rails drops to support rails 3.2.16 or older.
11
+ If you want to use this gem with Rails 3.2.16 or older, please use
12
+ 1.0.2 version.
13
+
3
14
  h2(#1-0-2). 1.0.2 - 2012-07-05
4
15
 
5
16
  h3. Improvements
@@ -16,11 +16,58 @@
16
16
  # License along with this library; if not, write to the Free Software
17
17
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
19
- require "test/unit/rails"
20
19
 
21
- require "rails/test_help"
20
+ if Rails.env.production?
21
+ abort("Abort testing: Your Rails environment is running in production mode!")
22
+ end
23
+
24
+ require "test-unit"
25
+ require "test/unit/assertion-failed-error"
22
26
 
27
+ require "test/unit/rails"
23
28
  require "capybara/rails"
29
+ require 'active_support/testing/constant_lookup'
30
+ require 'action_controller'
31
+ require 'action_controller/test_case'
32
+ require 'action_dispatch/testing/integration'
33
+
34
+ if defined?(ActiveRecord::Migration)
35
+ if ActiveRecord::Migration.respond_to?(:maintain_test_schema!)
36
+ ActiveRecord::Migration.maintain_test_schema!
37
+ else
38
+ ActiveRecord::Migration.check_pending!
39
+ end
40
+ end
41
+
42
+ if defined?(ActiveRecord::Base)
43
+ class ::Test::Unit::TestCase
44
+ include ActiveRecord::TestFixtures
45
+ self.fixture_path = "#{Rails.root}/test/fixtures/"
46
+
47
+ setup do
48
+ setup_fixtures
49
+ end
50
+
51
+ teardown do
52
+ teardown_fixtures
53
+ end
54
+ end
55
+
56
+ ActionDispatch::IntegrationTest.fixture_path = ::Test::Unit::TestCase.fixture_path
57
+ end
58
+
59
+ class ActionController::TestCase
60
+ setup do
61
+ @routes = Rails.application.routes
62
+ end
63
+ include ActiveRecord::TestFixtures
64
+
65
+ self.fixture_path = "#{Rails.root}/test/fixtures/"
66
+ end
67
+
24
68
  class ActionDispatch::IntegrationTest
69
+ setup do
70
+ @routes = Rails.application.routes
71
+ end
25
72
  include Capybara::DSL
26
73
  end
@@ -19,7 +19,7 @@
19
19
  module Test
20
20
  module Unit
21
21
  module Rails
22
- VERSION = "1.0.2"
22
+ VERSION = "1.0.3"
23
23
  end
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,148 +1,143 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
5
- prerelease:
4
+ version: 1.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kouhei Sutou
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-05 00:00:00.000000000 Z
11
+ date: 2014-09-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: test-unit-activesupport
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
- version: '0'
33
+ version: 1.0.2
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
- version: '0'
40
+ version: 1.0.2
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: test-unit-notify
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: test-unit-capybara
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: test-unit-rr
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: bundler
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rake
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - ">="
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: packnga
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ! '>='
115
+ - - ">="
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - ">="
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
- description: ! 'Rails supports Test::Unit bundled in Ruby 1.8 and MiniTest but doesn''t
143
- support test-unit 2. Rails with test-unit 2 works but is not fully worked.
144
-
145
- '
125
+ - !ruby/object:Gem::Dependency
126
+ name: RedCloth
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: |
140
+ 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.
146
141
  email:
147
142
  - kou@clear-code.com
148
143
  executables: []
@@ -151,38 +146,37 @@ extra_rdoc_files: []
151
146
  files:
152
147
  - COPYING
153
148
  - Gemfile
154
- - Rakefile
155
149
  - README.textile
156
- - lib/test/unit/rails/version.rb
157
- - lib/test/unit/rails/test_help.rb
158
- - lib/test/unit/rails.rb
150
+ - Rakefile
159
151
  - doc/text/news.textile
160
- homepage: http://test-unit.rubyforge.org/#test-unit-rails
152
+ - lib/test/unit/rails.rb
153
+ - lib/test/unit/rails/test_help.rb
154
+ - lib/test/unit/rails/version.rb
155
+ homepage: https://github.com/test-unit/test-unit-rails
161
156
  licenses:
162
157
  - LGPLv2 or later
158
+ metadata: {}
163
159
  post_install_message:
164
160
  rdoc_options: []
165
161
  require_paths:
166
162
  - lib
167
163
  required_ruby_version: !ruby/object:Gem::Requirement
168
- none: false
169
164
  requirements:
170
- - - ! '>='
165
+ - - ">="
171
166
  - !ruby/object:Gem::Version
172
167
  version: '0'
173
168
  required_rubygems_version: !ruby/object:Gem::Requirement
174
- none: false
175
169
  requirements:
176
- - - ! '>='
170
+ - - ">="
177
171
  - !ruby/object:Gem::Version
178
172
  version: '0'
179
173
  requirements: []
180
- rubyforge_project: test-unit
181
- rubygems_version: 1.8.23
174
+ rubyforge_project:
175
+ rubygems_version: 2.2.2
182
176
  signing_key:
183
- specification_version: 3
184
- summary: test-unit-rails is a Rails adapter for test-unit 2. You can use full test-unit
185
- 2 features, "RR":https://rubygems.org/gems/rr integration and "Capybara":https://rubygems.org/gems/capybara
177
+ specification_version: 4
178
+ summary: test-unit-rails is a Rails adapter for test-unit 3. You can use full test-unit
179
+ 3 features, "RR":https://rubygems.org/gems/rr integration and "Capybara":https://rubygems.org/gems/capybara
186
180
  integration with test-unit-rails.
187
181
  test_files: []
188
182
  has_rdoc: