From 5682596db740d53e1deaf9244fcc004ccffe1fb4 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 29 May 2014 15:31:45 -0700 Subject: Strexp#names is only used in a test, so rm --- actionpack/test/journey/router/strexp_test.rb | 32 --------------------------- 1 file changed, 32 deletions(-) delete mode 100644 actionpack/test/journey/router/strexp_test.rb (limited to 'actionpack/test/journey') diff --git a/actionpack/test/journey/router/strexp_test.rb b/actionpack/test/journey/router/strexp_test.rb deleted file mode 100644 index 9cb333757c..0000000000 --- a/actionpack/test/journey/router/strexp_test.rb +++ /dev/null @@ -1,32 +0,0 @@ -require 'abstract_unit' - -module ActionDispatch - module Journey - class Router - class TestStrexp < ActiveSupport::TestCase - def test_many_names - exp = Strexp.build( - "/:controller(/:action(/:id(.:format)))", - {:controller=>/.+?/}, - ["/", ".", "?"], - true) - - assert_equal ["controller", "action", "id", "format"], exp.names - end - - def test_names - { - "/bar(.:format)" => %w{ format }, - ":format" => %w{ format }, - ":format-" => %w{ format }, - ":format0" => %w{ format0 }, - ":format1,:format2" => %w{ format1 format2 }, - }.each do |string, expected| - exp = Strexp.build(string, {}, ["/", ".", "?"]) - assert_equal expected, exp.names - end - end - end - end - end -end -- cgit v1.2.3