diff options
author | Alec Leamas <leamas.alec@gmail.com> | 2010-12-29 11:51:28 +0300 |
---|---|---|
committer | Alec Leamas <alec@tests.notat.diaspora.com> | 2010-12-29 12:31:25 +0300 |
commit | 8d218e78719eefd6d24a7c4e74f18cec7849a52b (patch) | |
tree | aa5dd92d5740647d09d15890bf6ae59e2b67fb9a /config/environment.rb | |
parent | c92f80b2eb9a2cab52d96f886602bbdae56f160a (diff) |
suburi cucumber test.
Adds the features/uri-features test directory, testing sub-uri
deployment. These tests uses script/server since much of this code is
about configuring the server. They are not run by "rake cucumber", to
run them use "bundle exec rake cucumber features/uri-test".
Tests requires a working app_config.yml setup with pod_url =
"http://localhost:3000/diaspora"
Patches cucumber.yml to always load step definitions from features/**, see
http://thoughtsincomputation.com/posts/cucumber-step-definitions-and-autorequire-hell
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/environment.rb b/config/environment.rb index 0586220b5..402354a1c 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -6,6 +6,7 @@ require File.expand_path('../application', __FILE__) Haml::Template.options[:format] = :html5 Haml::Template.options[:escape_html] = true +ActionController::Base.config.relative_url_root = "/daspora" if File.exists?(File.expand_path("./config/languages.yml")) languages = YAML::load(File.open(File.expand_path("./config/languages.yml"))) @@ -24,6 +25,7 @@ else LANGUAGE_CODES_MAP = {} end +#config.action_controller.relative_url_root = "/diaspora" + # Initialize the rails application Diaspora::Application.initialize! - |