On Jul 4, 2010, at 3:28 PM, Lalish-Menagh, Trevor wrote:
>
> On Sat, Jul 3, 2010 at 2:40 AM, Lalish-Menagh, Trevor
> wrote:
>> Hi all,
>>
>> I must be doing something wrong here. Could someone point me in the
>> right direction? I am trying to test my nested resources in Rails 3.
>>
>> The rout
Hi again,
I figured out the issue. RSpec's route_to wraps Rails' assert_routing,
which checks two things:
- Rails recognizes the given path and routes it to a particular spot
in your application (via assert_recognizes)
- a particular set of options generate a particular path (via assert_generates)
Hi all,
I must be doing something wrong here. Could someone point me in the
right direction? I am trying to test my nested resources in Rails 3.
The route:
resources :students do
resources :days
end
The test:
it "recognizes and generates #index" do
{ :get => "/students/1/da