describe InstitutionsController do
describe "- route generation" do
it "should map { :controller => 'institutions', :action => 'index' } to /institutions" do
route_for(:controller => "institutions", :action => "index").should == "/institutions"
end
end
describe "- route recognition" do
it "should generate params { :controller => 'institutions', action => 'index' } from GET /institutions" do
params_from(:get, "/institutions").should == {:controller => "institutions", :action => "index"}
end
end
end