Skip to content

Instantly share code, notes, and snippets.

@jlindsey
Created March 29, 2010 19:57
Show Gist options
  • Save jlindsey/348327 to your computer and use it in GitHub Desktop.
Save jlindsey/348327 to your computer and use it in GitHub Desktop.
Regenerate Unit Tests for models
#! /bin/bash
for model in `find app/models/ -type f`; do
model=${model:11};
model=${model:0:(${#model}-3)};
yes n | script/generate model $model;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment