Skip to content

Commit

Permalink
Add test to deprecation of Path#children
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Oct 29, 2012
1 parent 3663057 commit 29b1dc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions railties/test/application/paths_test.rb
Expand Up @@ -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.