Since the paths.env file is not generated for Cucumber 1.1+, if for example if I use the visit login_path frequently for my test steps, should I create an individual step for it or should I just use visit login_path everywhere? If it ever changes, I can easily do a string replace under the features directory.
Thanks!
If it’s really just a matter of DRYing up your calls to
visit login_pathI’d just leave them be since they are clear and concise as they stand, and you (probably) ain’t gonna need to change the login path helper.However if you start seeing slightly more complicated steps like this,
consider using the
paths.rbmodel:That’s right, I like
paths.rbandselectors.rband copy them to new projects 🙂 I am glad to see the “kitchen sink”web_steps.rbgo though. For examples of how I use the support files: https://github.com/coshx/green-eggs/blob/master/features/support