diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-24 22:24:09 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-24 23:03:01 -0500 |
commit | ce350de56e266e3febdc810cb83ddb11b69fc4b7 (patch) | |
tree | f2318b806dbdecdf8a898bb1d0366e337561d26d /railties/test | |
parent | 685a9195aa1dcf0231806fe3bc27783145e2100f (diff) | |
download | rails-ce350de56e266e3febdc810cb83ddb11b69fc4b7.tar.gz rails-ce350de56e266e3febdc810cb83ddb11b69fc4b7.tar.bz2 rails-ce350de56e266e3febdc810cb83ddb11b69fc4b7.zip |
Removing Deprecated Path API tests
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/paths_test.rb | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/railties/test/paths_test.rb b/railties/test/paths_test.rb index 6e4e3446b3..c0f3887263 100644 --- a/railties/test/paths_test.rb +++ b/railties/test/paths_test.rb @@ -227,57 +227,4 @@ class PathsTest < ActiveSupport::TestCase assert @root["app"].autoload? assert_equal ["/app"], @root.autoload_paths end - - # Deprecated API tests - - test "reading a root level path with assignment" do - @root.add "app" - assert_deprecated do - assert_equal ["/foo/bar/app"], @root.app.to_a - end - end - - test "creating a root level path with assignment" do - assert_deprecated do - @root.app = "/foo/bar" - end - assert_equal ["/foo/bar"], @root["app"].to_a - end - - test "creating a root level path without assignment" do - assert_deprecated do - @root.app "/foo/bar" - end - assert_equal ["/foo/bar"], @root["app"].to_a - end - - test "reading a nested level path with assignment" do - @root.add "app" - @root.add "app/model" - assert_deprecated do - assert_equal ["/foo/bar/app/model"], @root.app.model.to_a - end - end - - test "creating a nested level path with assignment" do - @root.add "app" - assert_deprecated do - @root.app.model = "/foo/bar" - end - assert_equal ["/foo/bar"], @root["app/model"].to_a - end - - test "creating a nested level path without assignment" do - @root.add "app" - assert_deprecated do - @root.app.model "/foo/bar" - end - assert_equal ["/foo/bar"], @root["app/model"].to_a - end - - test "trying to access a path that does not exist raises NoMethodError" do - assert_deprecated do - assert_raises(NoMethodError) { @root.app } - end - end end |