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 the
1 | current_user |
method.
Generally
1 | current_user |
is a method defined in the
1 | ApplicationController |
class or in a user related module.
So it’s not accessible to Cucumber’s scenarios: let’s add it and share to all step definition’s classes.
1 | Specified file is not in uploads folder, does not exists, or not a file. |