login_as with rspec fails first test

前端 未结 1 1601
被撕碎了的回忆
被撕碎了的回忆 2021-01-23 20:04

Following instructions from that Devise How-To page I\'m trying to rebuild all my rspec test to bypass user signin process.

There are 2 methods that can be used for that

相关标签:
1条回答
  • 2021-01-23 20:24

    I would try moving your before(:all) and after(:all) code into the before(:each) and after(:each). :all doesn't play well with let, DatabaseCleaner or in giving you a predictable order of execution for the first test executed.

    0 讨论(0)
提交回复
热议问题