When changing Spinach step defined in a Spinach steps file, it is useful to run all those features which use that step.
e.g:
I have
step 'I have an empty array' do..defined in
features/steps/test_how_spinach_works.rbI would like to run
spinachfor every.featurefile which includes:I have an empty array.
Assuming you use bash:
Install ack.
Update your
ack.rcto include Spinach features:Add the following to your
bashrc:function ack-spinach() { ack --spinach --print0 -l '$1' | xargs -0 spinach }You may now run all the features with: