aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/concern_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/concern_test.rb')
-rw-r--r--activesupport/test/concern_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/concern_test.rb b/activesupport/test/concern_test.rb
index 40fcb7c57f..4cbe56a2d2 100644
--- a/activesupport/test/concern_test.rb
+++ b/activesupport/test/concern_test.rb
@@ -34,7 +34,7 @@ class ConcernTest < Test::Unit::TestCase
module Bar
extend ActiveSupport::Concern
- depends_on Baz
+ include Baz
def bar
"bar"
@@ -48,7 +48,7 @@ class ConcernTest < Test::Unit::TestCase
module Foo
extend ActiveSupport::Concern
- depends_on Bar, Baz
+ include Bar, Baz
end
def setup
@@ -90,7 +90,7 @@ class ConcernTest < Test::Unit::TestCase
assert @klass.included_modules.include?(ConcernTest::Bar)
end
- def test_depends_on_with_multiple_modules
+ def test_dependencies_with_multiple_modules
@klass.send(:include, Foo)
assert_equal [ConcernTest::Foo, ConcernTest::Bar, ConcernTest::Baz::InstanceMethods, ConcernTest::Baz], @klass.included_modules[0..3]
end