Created
February 6, 2019 12:48
-
-
Save sideshowbandana/b4066e8096dd6f45d78becb37a5c4bb1 to your computer and use it in GitHub Desktop.
test generators
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
#!/bin/bash | |
set -ex | |
mkdir -p test_generators | |
cd test_generators | |
rm -rf graphiti | |
git clone https://github.com/sideshowbandana/graphiti.git --single-branch --branch factory_bot_in_generator | |
curl https://gist.githubusercontent.com/sideshowbandana/a341bf8e0ede4c739c8abbd49809b908/raw/782cdad24dece3893b188d1a1107e6a2927b408c/generator_template.rb > generator_template.rb | |
rm -rf blog && rails new blog --api -m generator_template.rb | |
cd graphiti | |
git revert HEAD | |
cd .. | |
rm -rf blog && rails new blog --api -m generator_template.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment