diff options
author | James McKinney <james@slashpoundbang.com> | 2012-04-02 18:00:22 +0100 |
---|---|---|
committer | James McKinney <james@slashpoundbang.com> | 2012-04-02 18:00:22 +0100 |
commit | 74d74416d145a49c04f62ec9659f1a564251c1b6 (patch) | |
tree | e7d60c26852096b5edec1195ff23640b54bb7fcd /script/spec_server | |
parent | 91925edb6a52b8f7e5320ed1c081aff90046dc5c (diff) |
use Rails.root, not RAILS_ROOT
Diffstat (limited to 'script/spec_server')
-rwxr-xr-x | script/spec_server | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/spec_server b/script/spec_server index 1e839355f..dfdf8ff6c 100755 --- a/script/spec_server +++ b/script/spec_server @@ -41,7 +41,7 @@ module Spec load File.dirname(__FILE__) + '/../spec/spec_helper.rb' if in_memory_database? - load "#{RAILS_ROOT}/db/schema.rb" # use db agnostic schema by default + load "#{Rails.root}/db/schema.rb" # use db agnostic schema by default ActiveRecord::Migrator.up('db/migrate') # use migrations end @@ -80,7 +80,7 @@ def daemonize(pid_file = nil) return yield if $DEBUG pid = Process.fork{ Process.setsid - Dir.chdir(RAILS_ROOT) + Dir.chdir(Rails.root) trap("SIGINT"){ exit! 0 } trap("SIGTERM"){ exit! 0 } trap("SIGHUP"){ restart_test_server } |