mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
5921043f9e
commit
32225387c1
3 changed files with 3 additions and 3 deletions
|
@ -145,7 +145,7 @@ class IntegrationTestTest < ActiveSupport::TestCase
|
|||
name.to_s == "foo" ? "pass" : super
|
||||
end
|
||||
end
|
||||
@test.class.superclass.__send__(:include, mixin)
|
||||
@test.class.superclass.include(mixin)
|
||||
begin
|
||||
assert_equal "pass", @test.foo
|
||||
ensure
|
||||
|
|
|
@ -3,7 +3,7 @@ require "cases/helper"
|
|||
class TestFixturesTest < ActiveRecord::TestCase
|
||||
setup do
|
||||
@klass = Class.new
|
||||
@klass.send(:include, ActiveRecord::TestFixtures)
|
||||
@klass.include(ActiveRecord::TestFixtures)
|
||||
end
|
||||
|
||||
def test_deprecated_use_transactional_fixtures=
|
||||
|
|
|
@ -76,7 +76,7 @@ class ConcernTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_class_methods_are_extended_only_on_expected_objects
|
||||
::Object.__send__(:include, Qux)
|
||||
::Object.include(Qux)
|
||||
Object.extend(Qux::ClassMethods)
|
||||
# module needs to be created after Qux is included in Object or bug won't
|
||||
# be triggered
|
||||
|
|
Loading…
Reference in a new issue