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
|
name.to_s == "foo" ? "pass" : super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@test.class.superclass.__send__(:include, mixin)
|
@test.class.superclass.include(mixin)
|
||||||
begin
|
begin
|
||||||
assert_equal "pass", @test.foo
|
assert_equal "pass", @test.foo
|
||||||
ensure
|
ensure
|
||||||
|
|
|
@ -3,7 +3,7 @@ require "cases/helper"
|
||||||
class TestFixturesTest < ActiveRecord::TestCase
|
class TestFixturesTest < ActiveRecord::TestCase
|
||||||
setup do
|
setup do
|
||||||
@klass = Class.new
|
@klass = Class.new
|
||||||
@klass.send(:include, ActiveRecord::TestFixtures)
|
@klass.include(ActiveRecord::TestFixtures)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_deprecated_use_transactional_fixtures=
|
def test_deprecated_use_transactional_fixtures=
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConcernTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_class_methods_are_extended_only_on_expected_objects
|
def test_class_methods_are_extended_only_on_expected_objects
|
||||||
::Object.__send__(:include, Qux)
|
::Object.include(Qux)
|
||||||
Object.extend(Qux::ClassMethods)
|
Object.extend(Qux::ClassMethods)
|
||||||
# module needs to be created after Qux is included in Object or bug won't
|
# module needs to be created after Qux is included in Object or bug won't
|
||||||
# be triggered
|
# be triggered
|
||||||
|
|
Loading…
Reference in a new issue