[rspec-users] REST rspec_generator

Matthijs Langenberg mlangenberg at gmail.com
Tue Mar 27 14:00:24 EDT 2007


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
>


More information about the rspec-users mailing list