Skip to content

Instantly share code, notes, and snippets.

@brycemcd
Created February 19, 2010 19:49
Show Gist options
  • Save brycemcd/309123 to your computer and use it in GitHub Desktop.
Save brycemcd/309123 to your computer and use it in GitHub Desktop.
describe "/admin" do
before(:each){
get :index
}
it { should route(:get, "/admin").to(:controller => :reviews, :action => :index) }
it { should respond_with(:success) }
end
#don't use this, it's bad
#I want to reroute /reviews to /admin
get "/admin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment