Created
October 17, 2019 16:05
-
-
Save HerbCSO/cf655c1826600d2bf40243bd547bfcab to your computer and use it in GitHub Desktop.
Switching from minitest to rspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for dirs in app/*; do | |
dir=$(basename $dirs | sed 's/s$//') | |
echo $dir | |
for file in $(find ${dirs}/* -type f -not -name "_*"); do | |
rails generate rspec:${dir} ${$(basename ${file%.*} | sed 's/_'${dir}'//')%.*} | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment