diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-02-19 11:38:15 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-02-19 11:38:15 +1100 |
commit | e88d516a04da1c429abe7ac5fd635ce952044e05 (patch) | |
tree | e56e368a8e4432eba3f129c58cb5b70c3c0251a8 /script/load-sample-data | |
parent | 5eceb8870c2dc4c1bc2567ed033e30a81e5f5c43 (diff) |
Stop RSpec output when running load-sample-data
Diffstat (limited to 'script/load-sample-data')
-rwxr-xr-x | script/load-sample-data | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/script/load-sample-data b/script/load-sample-data index 06fc9b579..5fa860d3f 100755 --- a/script/load-sample-data +++ b/script/load-sample-data @@ -7,7 +7,13 @@ export LOC=`dirname "$0"` bundle exec rails runner /dev/stdin <<END -require "spec/spec_helper.rb" +require 'rspec/rails' +require 'spec/support/load_file_fixtures.rb' +require 'spec/support/email_helpers.rb' + +RSpec.configure do |config| + config.fixture_path = "#{::Rails.root}/spec/fixtures" +end # HACK: Normally to load fixtures you'd run `rake db:fixtures:load` but since we # have .csv files in the fixtures folder Rails tries to load those too. Therefore @@ -22,4 +28,4 @@ end load_raw_emails_data END -echo "Loaded fixtures. You may now wish to run $LOC/update-xapian-index" +echo "Loaded fixtures. You may now wish to run $LOC/update-xapian-index" |