aboutsummaryrefslogtreecommitdiffstats
path: root/script/load-sample-data
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-02-20 16:36:30 +1100
committerHenare Degan <henare.degan@gmail.com>2013-02-20 16:36:30 +1100
commit0feedc3adb21913b9138b7af73100377761b203e (patch)
tree11f85fcbb7ab05e051fcf0a5017a70014ecbdf57 /script/load-sample-data
parent2a98c2587c3e933e705154768c0f46a34777a56f (diff)
Specify the full path as Ruby 1.9.3 doesn't include the current directory in the load path
Diffstat (limited to 'script/load-sample-data')
-rwxr-xr-xscript/load-sample-data4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/load-sample-data b/script/load-sample-data
index 5fa860d3f..f9e9d0f8a 100755
--- a/script/load-sample-data
+++ b/script/load-sample-data
@@ -8,8 +8,8 @@ export LOC=`dirname "$0"`
bundle exec rails runner /dev/stdin <<END
require 'rspec/rails'
-require 'spec/support/load_file_fixtures.rb'
-require 'spec/support/email_helpers.rb'
+require "#{ENV['LOC']}/../spec/support/load_file_fixtures.rb"
+require "#{ENV['LOC']}/../spec/support/email_helpers.rb"
RSpec.configure do |config|
config.fixture_path = "#{::Rails.root}/spec/fixtures"