spec/private/parser_spec.rb in usher-0.5.6 vs spec/private/parser_spec.rb in usher-0.5.7

- old
+ new

@@ -1,6 +1,7 @@ -require 'lib/usher' +require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper")) +require "usher" describe "Usher route tokenizing" do it "should split / delimited routes" do @@ -70,6 +71,6 @@ it "should == variable types" do parts = Usher.new(:delimiters => ['/', '.'], :valid_regex => '[0-9A-Za-z\$\-_\+!\*\',]+').parser.parse_and_expand('/:split/:split').first parts[1].should == parts[3] end -end \ No newline at end of file +end