I\'m trying to write a request test that asserts that the proper links appear on the application layout depending in whether a user is logged in or out. FWIW, I\'m using Dev
In my case this was a problem with Devis's confirm! method. So instead of doing this (Minitest::Test code):
confirm!
Minitest::Test
setup do @admin = create(:admin).confirm! end
I have done this:
setup do @admin = create(:admin) @admin.confirm! end
And it worked :)