[rspec-users] REST rspec_generator
Scott Taylor
mailing_lists at railsnewbie.com
Tue Mar 27 03:54:10 EDT 2007
Is there some reason that the rspec resource generator produces code
like this:
context "Routes for the AnimalsController should map" do
controller_name :animals
specify "{ :controller => 'animals', :action => 'index' } to /
animals" do
route_for(:controller => "animals", :action => "index").should
== "/animals"
end
...
end
and not like this:
describe "The AnimalsController" do
it "should have an index route" do
route_for(hash_for_animals_url).should == "/animals"
end
end
Scott
More information about the rspec-users
mailing list