mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #33103 from bogdanvlviv/fix-using-of-method_call_assertions
Remove extra `include ActiveSupport::Testing::MethodCallAssertions`
This commit is contained in:
commit
34b16ce865
3 changed files with 2 additions and 5 deletions
|
@ -1,11 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "abstract_unit"
|
||||
require "active_support/testing/method_call_assertions"
|
||||
|
||||
class MethodCallAssertionsTest < ActiveSupport::TestCase
|
||||
include ActiveSupport::Testing::MethodCallAssertions
|
||||
|
||||
class Level
|
||||
def increment; 1; end
|
||||
def decrement; end
|
||||
|
|
|
@ -5,11 +5,9 @@ require "rack/test"
|
|||
require "minitest/mock"
|
||||
|
||||
require "action_view"
|
||||
require "active_support/testing/method_call_assertions"
|
||||
|
||||
class PerRequestDigestCacheTest < ActiveSupport::TestCase
|
||||
include ActiveSupport::Testing::Isolation
|
||||
include ActiveSupport::Testing::MethodCallAssertions
|
||||
include Rack::Test::Methods
|
||||
|
||||
setup do
|
||||
|
|
|
@ -14,6 +14,7 @@ require "bundler/setup" unless defined?(Bundler)
|
|||
require "active_support"
|
||||
require "active_support/testing/autorun"
|
||||
require "active_support/testing/stream"
|
||||
require "active_support/testing/method_call_assertions"
|
||||
require "active_support/test_case"
|
||||
|
||||
RAILS_FRAMEWORK_ROOT = File.expand_path("../../..", __dir__)
|
||||
|
@ -430,6 +431,7 @@ class ActiveSupport::TestCase
|
|||
include TestHelpers::Rack
|
||||
include TestHelpers::Generation
|
||||
include ActiveSupport::Testing::Stream
|
||||
include ActiveSupport::Testing::MethodCallAssertions
|
||||
|
||||
def frozen_error_class
|
||||
Object.const_defined?(:FrozenError) ? FrozenError : RuntimeError
|
||||
|
|
Loading…
Reference in a new issue