Functional testing with Rails and Devise. What to put in my fixtures?

前端 未结 4 1967
悲哀的现实
悲哀的现实 2020-12-03 01:12

Hi I\'m wanting to do some functional testing of my Rails 3 app that uses Devise and CanCan.

In my User model I have the users age, I want to test that a user can on

4条回答
  •  北海茫月
    2020-12-03 01:37

    Just one more hint. This worked great for me:

    http://brandonhilkert.com/blog/managing-login-passwords-for-capybara-with-minitest-and-rails-fixtures/

    And it seems to be DRY and nice solution.

提交回复
热议问题