diff options
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" |