spec/private/parser_spec.rb in usher-0.5.12 vs spec/private/parser_spec.rb in usher-0.5.13
- old
+ new
@@ -90,10 +90,10 @@
before :each do
@parser = Usher.new(:delimiters => ['/', '\(', '\)']).parser
end
it "should correctly generate route with a variable" do
- route = @parser.generate_route('/cheese\(:kind\)', nil, nil, nil, nil)
+ route = @parser.generate_route('/cheese\(:kind\)', nil, nil, nil, nil, nil)
variable = route.paths[0].parts[3]
variable.should be_kind_of(Usher::Route::Variable::Single)
variable.look_ahead.should == ')'
end
\ No newline at end of file