File tree 6 files changed +3
-29
lines changed
actionmailer/lib/action_mailer
activesupport/lib/active_support
6 files changed +3
-29
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,6 @@ def initialize(name)
10
10
end
11
11
12
12
class TestCase < ActiveSupport ::TestCase
13
-
14
- # Use AM::TestCase for the base class when describing a mailer
15
- register_spec_type ( self ) do |desc |
16
- Class === desc && desc < ActionMailer ::Base
17
- end
18
- register_spec_type ( /Mailer( ?Test)?\z /i , self )
19
-
20
13
module Behavior
21
14
extend ActiveSupport ::Concern
22
15
Original file line number Diff line number Diff line change @@ -360,13 +360,6 @@ def exists?
360
360
#
361
361
# assert_redirected_to page_url(title: 'foo')
362
362
class TestCase < ActiveSupport ::TestCase
363
-
364
- # Use AC::TestCase for the base class when describing a controller
365
- register_spec_type ( self ) do |desc |
366
- Class === desc && desc < ActionController ::Metal
367
- end
368
- register_spec_type ( /Controller( ?Test)?\z /i , self )
369
-
370
363
module Behavior
371
364
extend ActiveSupport ::Concern
372
365
include ActionDispatch ::TestProcess
Original file line number Diff line number Diff line change @@ -491,9 +491,6 @@ class IntegrationTest < ActiveSupport::TestCase
491
491
include ActionController ::TemplateAssertions
492
492
include ActionDispatch ::Routing ::UrlFor
493
493
494
- # Use AD::IntegrationTest for acceptance tests
495
- register_spec_type ( /(Acceptance|Integration) ?Test\z /i , self )
496
-
497
494
@@app = nil
498
495
499
496
def self . app
Original file line number Diff line number Diff line change @@ -30,9 +30,6 @@ def initialize
30
30
end
31
31
end
32
32
33
- # Use AV::TestCase for the base class for helpers and views
34
- register_spec_type ( /(Helper|View)( ?Test)?\z /i , self )
35
-
36
33
module Behavior
37
34
extend ActiveSupport ::Concern
38
35
Original file line number Diff line number Diff line change 1
1
gem 'minitest' # make sure we get the gem, not stdlib
2
- require 'minitest/spec '
2
+ require 'minitest/unit '
3
3
require 'active_support/testing/tagged_logging'
4
4
require 'active_support/testing/setup_and_teardown'
5
5
require 'active_support/testing/assertions'
17
17
end
18
18
19
19
module ActiveSupport
20
- class TestCase < ::MiniTest ::Spec
21
-
22
- # Use AS::TestCase for the base class when describing a model
23
- register_spec_type ( self ) do |desc |
24
- Class === desc && desc < ActiveRecord ::Base
25
- end
26
-
20
+ class TestCase < ::MiniTest ::Unit ::TestCase
27
21
Assertion = MiniTest ::Assertion
28
22
alias_method :method_name , :__name__
29
23
Original file line number Diff line number Diff line change 1
1
require 'abstract_unit'
2
2
3
3
class EngineTest < ActiveSupport ::TestCase
4
- it "reports routes as available only if they're actually present" do
4
+ test "reports routes as available only if they're actually present" do
5
5
engine = Class . new ( Rails ::Engine ) do
6
6
def initialize ( *args )
7
7
@routes = nil
You can’t perform that action at this time.
0 commit comments