spec/ext_route_spec.rb in nyara-0.0.1.pre.8 vs spec/ext_route_spec.rb in nyara-0.0.1.pre.9
- old
+ new
@@ -2,28 +2,28 @@
module Nyara
describe Ext, "route" do
before :each do
Ext.clear_route
- @e1 = RouteEntry.new{
+ @e1 = Route.new{
@http_method = 'GET'
@scope = '/hello'
@prefix = '/hello/'
@suffix = '(\d+)world'
@id = :'#1'
@conv = [:to_i]
@controller = 'stub'
}
- @e2 = RouteEntry.new{
+ @e2 = Route.new{
@http_method = 'GET'
@scope = '/hello'
@prefix = '/hello'
@suffix = ''
@id = :'#second'
@conv = []
@controller = 'stub2'
}
- @e3 = RouteEntry.new{
+ @e3 = Route.new{
@http_method = 'GET'
@scope = '/a目录'
@prefix = '/a目录/'
@suffix = '(\d+)-(\d+)-(\d+)'
@id = :'#dir'