aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/journey/routes_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-05-29 15:44:54 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-05-29 15:44:54 -0700
commitbb207ea7b6df6101860d5de6e47ad0e0f1ea2cdf (patch)
tree17f6d5937caaae970e74286cb98b05098c96078a /actionpack/test/journey/routes_test.rb
parent5682596db740d53e1deaf9244fcc004ccffe1fb4 (diff)
downloadrails-bb207ea7b6df6101860d5de6e47ad0e0f1ea2cdf.tar.gz
rails-bb207ea7b6df6101860d5de6e47ad0e0f1ea2cdf.tar.bz2
rails-bb207ea7b6df6101860d5de6e47ad0e0f1ea2cdf.zip
Path::Pattern is instantiated internally, so make the contructor require a strexp object
Diffstat (limited to 'actionpack/test/journey/routes_test.rb')
-rw-r--r--actionpack/test/journey/routes_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/journey/routes_test.rb b/actionpack/test/journey/routes_test.rb
index 2103cbb9b8..a4efc82b8c 100644
--- a/actionpack/test/journey/routes_test.rb
+++ b/actionpack/test/journey/routes_test.rb
@@ -18,7 +18,7 @@ module ActionDispatch
def test_ast
routes = Routes.new
- path = Path::Pattern.new '/hello'
+ path = Path::Pattern.from_string '/hello'
routes.add_route nil, path, {}, {}, {}
ast = routes.ast
@@ -28,7 +28,7 @@ module ActionDispatch
def test_simulator_changes
routes = Routes.new
- path = Path::Pattern.new '/hello'
+ path = Path::Pattern.from_string '/hello'
routes.add_route nil, path, {}, {}, {}
sim = routes.simulator
@@ -40,8 +40,8 @@ module ActionDispatch
#def add_route app, path, conditions, defaults, name = nil
routes = Routes.new
- one = Path::Pattern.new '/hello'
- two = Path::Pattern.new '/aaron'
+ one = Path::Pattern.from_string '/hello'
+ two = Path::Pattern.from_string '/aaron'
routes.add_route nil, one, {}, {}, 'aaron'
routes.add_route nil, two, {}, {}, 'aaron'