Skip to content

Instantly share code, notes, and snippets.

@jlindsey
Created March 29, 2010 19:57
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