From 5eceb8870c2dc4c1bc2567ed033e30a81e5f5c43 Mon Sep 17 00:00:00 2001 From: Henare Degan Date: Tue, 19 Feb 2013 11:30:02 +1100 Subject: Upgrade load-sample-data to work with Rails 3 --- script/load-sample-data | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'script/load-sample-data') diff --git a/script/load-sample-data b/script/load-sample-data index 86e1af128..06fc9b579 100755 --- a/script/load-sample-data +++ b/script/load-sample-data @@ -4,14 +4,20 @@ # the fact that the fixtures aren't aware of the fact that RawEmails # have a filesystem representation of their contents -LOC=`dirname "$0"` +export LOC=`dirname "$0"` -bundle exec rake --silent spec:db:fixtures:load +bundle exec rails runner /dev/stdin <