From cab263df36c3ef7330ef226e105f9f9af3c4e224 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Fri, 25 Jul 2008 21:48:00 +0000 Subject: [PATCH] ActionItem519: all URL's without a hostname are relative to the environment's top url. Since article urls always include a host, there is no problem --- app/views/layouts/application.rhtml | 1 + test/functional/application_controller_test.rb | 6 ++++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml index 4309425..341ebea 100644 --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -42,6 +42,7 @@ <%= stylesheet_link_tag '/designs/templates/default/stylesheets/style.css' %> <%= stylesheet_link_tag '/designs/icons/default/style.css' %> + { :id => 'user_box' }, :descendant => { :tag => 'a', :attributes => { :href => 'http://web.mail/' } } end + should 'use environment top_url as base' do + Environment.any_instance.expects(:top_url).returns('http://www.lala.net') + get :index + assert_tag :tag => 'base', :attributes => { :href => 'http://www.lala.net' } + end + end -- libgit2 0.21.2