Forum: Ruby on Rails Unit Testing not working for some controllers.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
553eecd4f9b81ada4b21a755efe025e6?d=identicon&s=25 Jazzy Buddy (jazzybuddy)
on 2007-06-14 08:20
Hai all,
    I am trying to unit test all my controllers (functional testing).
All the actions in controllers which are accessed directly from the
browser are working properly (i.e., the parameters I am passing from the
test case are getting accessed with "params[:mmm]").

But some actions in controllers which are called through ajax calls are
not working properly. i.e., the parametsrs are not getting passed to
that action in that controller, they are NIL.

Can somebody tel me what can be the problem???

THNX in advance.
Jazzy Buddy.
588ab1c0a5610a7e160a3b101abb91e6?d=identicon&s=25 MichaelLatta (Guest)
on 2007-06-14 08:47
(Received via mailing list)
There is not enough information here.  Since ajax calls to controllers
with params do work, there must be something in how you are invoking
them in your test that is the issue.  I suggest posting a short sample
of the test code that is failing and the action it is invoking.


On Jun 13, 11:20 pm, Jazzy Buddy <>
This topic is locked and can not be replied to.