functional test for rails controller private method

Posted by mohit on Stack Overflow See other posts from Stack Overflow or by mohit
Published on 2010-04-28T13:59:34Z Indexed on 2010/04/28 14:13 UTC
Read the original article Hit count: 295

I have a private method in my controller. which is used for some database update. this method i am calling from another controller method. and it works fine.

But when i am trying to write a test case for that method then It is tripping on accessing (session variable and params) in my functional all other methods are working fine the problem is only with private method?

In my setup method in functional test, I am setting session also.?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about ruby-on-rails