From 29b1dc273e1ad6b9e13bf48fe3f12047850f9554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 29 Oct 2012 11:14:20 -0200 Subject: Add test to deprecation of Path#children --- railties/test/application/paths_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/railties/test/application/paths_test.rb b/railties/test/application/paths_test.rb index f85c284c25..d9cd26a3a2 100644 --- a/railties/test/application/paths_test.rb +++ b/railties/test/application/paths_test.rb @@ -82,5 +82,11 @@ module ApplicationTests assert_not_in_load_path "tmp" assert_not_in_load_path "tmp", "cache" end + + test "deprecated children method" do + assert_deprecated "children is deprecated and will be removed in Rails 4.1." do + @paths["app/assets"].children + end + end end end -- cgit v1.2.3