diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-02-20 16:36:30 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-02-20 16:36:30 +1100 |
commit | 0feedc3adb21913b9138b7af73100377761b203e (patch) | |
tree | 11f85fcbb7ab05e051fcf0a5017a70014ecbdf57 | |
parent | 2a98c2587c3e933e705154768c0f46a34777a56f (diff) |
Specify the full path as Ruby 1.9.3 doesn't include the current directory in the load path
-rwxr-xr-x | script/load-sample-data | 4 |
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" |