diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-04-19 11:09:41 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-04-19 11:09:41 +0100 |
commit | 69be0151757f1802052b9895135d3047605e6338 (patch) | |
tree | aaeab66bb26e21bbd582b243233db60f1a855f5d /script/spec_server | |
parent | 17d8dad044dea0fc678d0bdc409700131685db86 (diff) | |
parent | a33c560ab2a3a6c1090dc0334b85c46b9f45c107 (diff) |
Merge branch 'develop' into purge-requests
Conflicts:
spec/controllers/request_controller_spec.rb
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 } |