Closed mbigras closed 7 years ago
Hard to tell if they are right without trying them. Do they work? If you break your app, do they properly report failures?
Re-using ivars in these is usually fine assuming you are taking care to set it properly and clear it properly. I try to avoid it if I can include all the bits of state in the steps, but that's often not possible. I would expect steps like "Given a repo at …" to set up some state in ivars that other steps could rely on.
I'm going to add to this tomorrow.
I've been working on adding the missing step definitions while working on the "Force overwrite" scenario.
Would love some feedback on if these step definitions are right. Especially wondering if reusing
@repo_dir
is okay to reuse in other steps.This references https://github.com/mbigras/fullstop commit d97efd2 if it's easier to look at 😄
fullstop.feature
fullstop_steps.rb