Add current_user to Cucumber step definitions

Logo devnterface d88f51727b3053dd3115e1ef9c566ad79b4c2edb3cd208c06345fc37058bebd9

Cucumber provides a great way to apply BDD during your rails development.Sometimes you need to populate your testing database with background data and sometimes you need to access the1current_usermethod.Generally1current_useris a method defined in the1ApplicationControllerclass or in a user related module. So it’s no...

Read more