Drop Paths::Root initializer check of #path as it isn't checked in the #path= or anywhere else
This commit is contained in:
parent
4977e14e1b
commit
f7a39c848a
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user