Created
February 19, 2010 19:49
-
-
Save brycemcd/309123 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
describe "/admin" do | |
before(:each){ | |
get :index | |
} | |
it { should route(:get, "/admin").to(:controller => :reviews, :action => :index) } | |
it { should respond_with(:success) } | |
end |
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
#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