diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-29 19:13:34 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-29 19:13:34 +0000 |
commit | bbaa789b6c417300fbdace70ca93d7099c68b718 (patch) | |
tree | f15eb4eef728701dceddffe440a609302cac8d8d /script/load-sample-data | |
parent | d4c29c07ae46784ea1d564b749fb709c94a913f9 (diff) | |
parent | f6cd280bbfafa2151ededb8280407686fb73e8a7 (diff) |
Merge branch 'release/0.5' into wdtk
Diffstat (limited to 'script/load-sample-data')
-rwxr-xr-x | script/load-sample-data | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/script/load-sample-data b/script/load-sample-data index 84b8a28eb..92846ce17 100755 --- a/script/load-sample-data +++ b/script/load-sample-data @@ -4,17 +4,16 @@ # the fact that the fixtures aren't aware of the fact that RawEmails # have a filesystem representation of their contents -LOC=`dirname $0` +LOC=`dirname "$0"` + rake --silent spec:db:fixtures:load + "$LOC/runner" /dev/stdin <<END env = ENV["RAILS_ENV"] -require "spec/spec_helper.rb" # Sets RAILS_ENV to 'test' -ENV["RAILS_ENV"] = env +require "spec/spec_helper.rb" # this sets RAILS_ENV to 'test' +ENV["RAILS_ENV"] = env # so restore to what it was before -RawEmail.all().each do |email| - puts "Writing #{email.filepath}" - email.data = load_file_fixture("useless_raw_email.email") -end +load_raw_emails_data END echo "Loaded fixtures." |