On Aug 11, 2:11 am, Sijo Kg <[email protected]> wrote:
>   This will work
>
> assert_recognizes({:controller => 'birds', :action => "index"},"birds")

Thanks. Adding parentheses fixed that test, and more importantly,
fixed restful routes tests like:

  test "should have some restful routes" do
    assert_recognizes({:controller => 'birds', :action => "index"},
"birds")
    assert_recognizes({:controller => 'birds', :action => 'create'},
{:path => 'birds', :method => :post})
    assert_routing({:path => 'birds', :method => :post}, {:controller
=> 'birds', :action => 'create'})
  end

Thanks Sijo.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to