diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-29 17:03:23 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-29 17:03:23 -0500 |
commit | 669fd84910586d4c791b6f5bf4320f68ac7845aa (patch) | |
tree | ec246bdf6fe6fc61219c59837c4bec07ba19e267 /activesupport/test | |
parent | c7c35be8fe30b3e29a5d05edae767f7d6a286911 (diff) | |
download | rails-669fd84910586d4c791b6f5bf4320f68ac7845aa.tar.gz rails-669fd84910586d4c791b6f5bf4320f68ac7845aa.tar.bz2 rails-669fd84910586d4c791b6f5bf4320f68ac7845aa.zip |
AS::Concern redefines "include" to lazy include modules as dependencies
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/concern_test.rb | 6 |
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 |