Methods
A
S
T
Instance Public methods
assert_round_trip(str)
# File actionpack/test/journey/route/definition/parser_test.rb, line 104
def assert_round_trip str
  assert_equal str, @parser.parse(str).to_s
end
setup()
# File actionpack/test/journey/route/definition/parser_test.rb, line 7
def setup
  @parser = Parser.new
end
test_arbitrary()
# File actionpack/test/journey/route/definition/parser_test.rb, line 92
def test_arbitrary
  assert_round_trip('/bar/*foo#')
end
test_dot_literal()
# File actionpack/test/journey/route/definition/parser_test.rb, line 48
def test_dot_literal
  assert_round_trip('.xml')
end
test_dot_symbol()
# File actionpack/test/journey/route/definition/parser_test.rb, line 44
def test_dot_symbol
  assert_round_trip('.:format')
end
test_group()
# File actionpack/test/journey/route/definition/parser_test.rb, line 32
def test_group
  assert_round_trip '(/:foo)'
end
test_group_followed_by_path()
# File actionpack/test/journey/route/definition/parser_test.rb, line 72
def test_group_followed_by_path
  assert_round_trip('/foo(/:action)/:bar')
end
test_groups()
# File actionpack/test/journey/route/definition/parser_test.rb, line 36
def test_groups
  assert_round_trip '(/:foo)(/:bar)'
end
test_groups_with_dot()
# File actionpack/test/journey/route/definition/parser_test.rb, line 100
def test_groups_with_dot
  assert_round_trip "/(:locale)(.:format)"
end
test_literal_dot_paren()
# File actionpack/test/journey/route/definition/parser_test.rb, line 96
def test_literal_dot_paren
  assert_round_trip "/sprockets.js(.:format)"
end
test_nested_groups()
# File actionpack/test/journey/route/definition/parser_test.rb, line 40
def test_nested_groups
  assert_round_trip '(/:foo(/:bar))'
end
test_or()
# File actionpack/test/journey/route/definition/parser_test.rb, line 83
def test_or
  assert_round_trip('a|b')
  assert_round_trip('a|b|c')
  assert_round_trip('(a|b)|c')
  assert_round_trip('a|(b|c)')
  assert_round_trip('*a|(b|c)')
  assert_round_trip('*a|:b|c')
end
test_segment()
# File actionpack/test/journey/route/definition/parser_test.rb, line 16
def test_segment
  assert_round_trip '/foo'
end
test_segment_dot()
# File actionpack/test/journey/route/definition/parser_test.rb, line 52
def test_segment_dot
  assert_round_trip('/foo.:bar')
end
test_segment_group()
# File actionpack/test/journey/route/definition/parser_test.rb, line 60
def test_segment_group
  assert_round_trip('/foo(/:action)')
end
test_segment_group_dot()
# File actionpack/test/journey/route/definition/parser_test.rb, line 56
def test_segment_group_dot
  assert_round_trip('/foo(.:bar)')
end
test_segment_groups()
# File actionpack/test/journey/route/definition/parser_test.rb, line 64
def test_segment_groups
  assert_round_trip('/foo(/:action)(/:bar)')
end
test_segment_nested_groups()
# File actionpack/test/journey/route/definition/parser_test.rb, line 68
def test_segment_nested_groups
  assert_round_trip('/foo(/:action(/:bar))')
end
test_segment_symbol()
# File actionpack/test/journey/route/definition/parser_test.rb, line 24
def test_segment_symbol
  assert_round_trip '/foo/:id'
end
test_segments()
# File actionpack/test/journey/route/definition/parser_test.rb, line 20
def test_segments
  assert_round_trip '/foo/bar'
end
test_slash()
# File actionpack/test/journey/route/definition/parser_test.rb, line 11
def test_slash
  assert_equal :SLASH, @parser.parse('/').type
  assert_round_trip '/'
end
test_star()
# File actionpack/test/journey/route/definition/parser_test.rb, line 76
def test_star
  assert_round_trip('*foo')
  assert_round_trip('/*foo')
  assert_round_trip('/bar/*foo')
  assert_round_trip('/bar/(*foo)')
end
test_symbol()
# File actionpack/test/journey/route/definition/parser_test.rb, line 28
def test_symbol
  assert_round_trip '/:foo'
end