Created
April 2, 2009 08:52
-
-
Save olkeene/89104 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 FooController do | |
describe "route generation" do | |
it "should map { :controller => 'foo', :action => 'index' } to /foo" do | |
route_for(:controller => "foo", :action => "index").should == "/foo" | |
end | |
end | |
describe "route recognition" do | |
it "should generate params { :controller => 'foo', action => 'index' } from GET /foo" do | |
params_from(:get, "/foo").should == {:controller => "foo", :action => "index"} | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment