aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/journey/routes_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-05-29 15:23:30 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-05-29 15:23:30 -0700
commit15ffbedf3bb5907c3774fcc38466c799e92f9a04 (patch)
tree59017b2e215f23da792e7f460f9e77f533bd4832 /actionpack/test/journey/routes_test.rb
parenteabe504cdfa11b580c614d6bd501eb7cc60f485d (diff)
downloadrails-15ffbedf3bb5907c3774fcc38466c799e92f9a04.tar.gz
rails-15ffbedf3bb5907c3774fcc38466c799e92f9a04.tar.bz2
rails-15ffbedf3bb5907c3774fcc38466c799e92f9a04.zip
add an alternate constructor to Strexp that takes a string
Diffstat (limited to 'actionpack/test/journey/routes_test.rb')
-rw-r--r--actionpack/test/journey/routes_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/journey/routes_test.rb b/actionpack/test/journey/routes_test.rb
index 25e0321d31..2103cbb9b8 100644
--- a/actionpack/test/journey/routes_test.rb
+++ b/actionpack/test/journey/routes_test.rb
@@ -5,7 +5,7 @@ module ActionDispatch
class TestRoutes < ActiveSupport::TestCase
def test_clear
routes = Routes.new
- exp = Router::Strexp.new '/foo(/:id)', {}, ['/.?']
+ exp = Router::Strexp.build '/foo(/:id)', {}, ['/.?']
path = Path::Pattern.new exp
requirements = { :hello => /world/ }