Created
August 22, 2008 05:04
-
-
Save revelation/6759 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should allow creating conditions that proceed a glob" do | |
Merb::Router.prepare do |r| | |
r.match!("/:foo/bar/:glob", :glob => /.*/) | |
end | |
%w(somewhere somewhere/somehow 123/456/789 i;just/dont-understand).each do |path| | |
route_to("/superblog/bar/#{path}").should have_route(:foo => "superblog", :glob => path) | |
route_to("/notablog/foo/#{path}").should have_nil_route | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment