Permalink
Browse files

Update references from RAIS_ROOT to Rails.root

  • Loading branch information...
1 parent 87cc458 commit 142b0fb31ecfc1349f9198b7eb385960b12ec677 @brynary brynary committed Jul 24, 2010
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/webrat/core/save_and_open_page.rb
  2. +3 −3 lib/webrat/selenium/application_servers/rails.rb
@@ -1,6 +1,6 @@
module Webrat
module SaveAndOpenPage
- # Saves the page out to RAILS_ROOT/tmp/ and opens it in the default
+ # Saves the page out to Rails.root/tmp/ and opens it in the default
# web browser if on OS X. Useful for debugging.
#
# Example:
@@ -27,15 +27,15 @@ def fail
end
def pid_file
- prepare_pid_file("#{RAILS_ROOT}/tmp/pids", "mongrel_selenium.pid")
+ prepare_pid_file("#{::Rails.root}/tmp/pids", "mongrel_selenium.pid")
end
def start_command
- "mongrel_rails start -d --chdir='#{RAILS_ROOT}' --port=#{Webrat.configuration.application_port} --environment=#{Webrat.configuration.application_environment} --pid #{pid_file} &"
+ "mongrel_rails start -d --chdir='#{::Rails.root}' --port=#{Webrat.configuration.application_port} --environment=#{Webrat.configuration.application_environment} --pid #{pid_file} &"
end
def stop_command
- "mongrel_rails stop -c #{RAILS_ROOT} --pid #{pid_file}"
+ "mongrel_rails stop -c #{::Rails.root} --pid #{pid_file}"
end
end

0 comments on commit 142b0fb

Please sign in to comment.