Commit 3b53ec20 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Adds themes test for when Redmine is in a sub-uri.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4560 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent c8dc7fff
......@@ -57,4 +57,19 @@ class ThemesTest < ActionController::IntegrationTest
ensure
@theme.javascripts.delete 'theme'
end
def test_with_sub_uri
Redmine::Utils.relative_url_root = '/foo'
@theme.javascripts << 'theme'
get '/'
assert_response :success
assert_tag :tag => 'link',
:attributes => {:href => %r{^/foo/themes/#{@theme.dir}/stylesheets/application.css}}
assert_tag :tag => 'script',
:attributes => {:src => %r{^/foo/themes/#{@theme.dir}/javascripts/theme.js}}
ensure
Redmine::Utils.relative_url_root = ''
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment