Skip to content
Browse files

Add test to deprecation of Path#children

  • Loading branch information...
1 parent 3663057 commit 29b1dc273e1ad6b9e13bf48fe3f12047850f9554 @rafaelfranca rafaelfranca committed Oct 29, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/application/paths_test.rb
View
6 railties/test/application/paths_test.rb
@@ -82,5 +82,11 @@ def assert_not_in_load_path(*path)
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

0 comments on commit 29b1dc2

Please sign in to comment.
Something went wrong with that request. Please try again.