Permalink
Browse files

Drop Paths::Root initializer check of #path as it isn't checked in th…

…e #path= or anywhere else
  • Loading branch information...
1 parent 4977e14 commit f7a39c848a2e3fb1bf51bd35a9f4223cb82c2eae @Empact Empact committed Mar 29, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −1 railties/lib/rails/paths.rb
  2. +0 −4 railties/test/paths_test.rb
@@ -45,7 +45,6 @@ class Root
attr_accessor :path
def initialize(path)
- raise "Argument should be a String of the physical root path" if path.is_a?(Array)
@current = nil
@path = path
@root = {}
@@ -91,10 +91,6 @@ def setup
assert_equal ["/foo/bar/app2", "/foo/bar/app"], @root["app"].to_a
end
- test "the root can only have one physical path" do
- assert_raise(RuntimeError) { Rails::Paths::Root.new(["/fiz", "/biz"]) }
- end
-
test "it is possible to add a path that should be autoloaded only once" do
@root.add "app", :with => "/app"
@root["app"].autoload_once!

0 comments on commit f7a39c8

Please sign in to comment.