I guess the resource generator isn''t updated yet.
On 3/27/07, Scott Taylor <mailing_lists at railsnewbie.com>
wrote:>
> 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
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>