diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-26 01:03:35 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-26 01:03:35 +0000 |
commit | 673b5cc3939e9abc3bc1f5984f2a61ed45b70529 (patch) | |
tree | 5b02800891270972a8946518f37fb807f2b9b7d8 /script/load-sample-data | |
parent | 0e546a79b205124d7b95b89e4a2e9cc520a4fc10 (diff) | |
parent | 6d7bea575ec185379efb648f6bbbd520029e3a91 (diff) |
Merge branch 'release/0.5' into develop
Diffstat (limited to 'script/load-sample-data')
-rwxr-xr-x | script/load-sample-data | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/script/load-sample-data b/script/load-sample-data index 0521ef849..84b8a28eb 100755 --- a/script/load-sample-data +++ b/script/load-sample-data @@ -6,7 +6,15 @@ LOC=`dirname $0` rake --silent spec:db:fixtures:load -"$LOC/runner" 'puts File.expand_path(File.dirname(__FILE__) + "/spec/spec_helper"); require File.expand_path(File.dirname(__FILE__) + "/spec/spec_helper"); RawEmail.all().each {|email| email.data = load_file_fixture("useless_raw_email.email")}' +"$LOC/runner" /dev/stdin <<END +env = ENV["RAILS_ENV"] +require "spec/spec_helper.rb" # Sets RAILS_ENV to 'test' +ENV["RAILS_ENV"] = env +RawEmail.all().each do |email| + puts "Writing #{email.filepath}" + email.data = load_file_fixture("useless_raw_email.email") +end +END -echo "Loaded fixtures."
\ No newline at end of file +echo "Loaded fixtures." |