aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2012-03-29 01:36:26 -0700
committerBen Woosley <ben.woosley@gmail.com>2012-03-29 02:53:25 -0700
commitf7a39c848a2e3fb1bf51bd35a9f4223cb82c2eae (patch)
tree436eaa1af59aaa22b35298def08ea45c07c37702
parent4977e14e1b70cd886b54fc694f29b6c1b89f0181 (diff)
downloadrails-f7a39c848a2e3fb1bf51bd35a9f4223cb82c2eae.tar.gz
rails-f7a39c848a2e3fb1bf51bd35a9f4223cb82c2eae.tar.bz2
rails-f7a39c848a2e3fb1bf51bd35a9f4223cb82c2eae.zip
Drop Paths::Root initializer check of #path as it isn't checked in the #path= or anywhere else
-rw-r--r--railties/lib/rails/paths.rb1
-rw-r--r--railties/test/paths_test.rb4
2 files changed, 0 insertions, 5 deletions
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb
index c0da113b36..de4dc5007d 100644
--- a/railties/lib/rails/paths.rb
+++ b/railties/lib/rails/paths.rb
@@ -45,7 +45,6 @@ module Rails
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 = {}
diff --git a/railties/test/paths_test.rb b/railties/test/paths_test.rb
index f30bbbc6f5..d334034e7d 100644
--- a/railties/test/paths_test.rb
+++ b/railties/test/paths_test.rb
@@ -91,10 +91,6 @@ class PathsTest < ActiveSupport::TestCase
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!