rspec & devise test helpers

后端 未结 4 1416

According to this from the devise wiki I should be able to use a login_user helper method in my controller tests. Accordingly I have the following within the spec directory:

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-15 06:39

    I have same issue with Rails 3.0.10 rspec 2.6.0 devise 1.3.4 spork-0.9.0.rc9 on my controller specs, i have changed config. extend to config.include and its work !

提交回复
热议问题