Skip to content

Instantly share code, notes, and snippets.

@wycats
Forked from carllerche/gist:8091
Created August 30, 2008 06:18
Show Gist options
  • Save wycats/8093 to your computer and use it in GitHub Desktop.
Save wycats/8093 to your computer and use it in GitHub Desktop.
it "should only use the second namespace" do
Merb::Router.prepare do |r|
r.namespace(:foo) do |f|
end
r.namespace(:bar) do |b|
b.match("/login").to(:controller => "home").name(:login)
end
end
url(:bar_login).should == "/bar/login"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment