##// END OF EJS Templates
Adds themes test for when Redmine is in a sub-uri....
Jean-Philippe Lang -
r4446:3b53ec20e672
parent child
Show More
@@ -57,4 +57,19 class ThemesTest < ActionController::IntegrationTest
57 ensure
57 ensure
58 @theme.javascripts.delete 'theme'
58 @theme.javascripts.delete 'theme'
59 end
59 end
60
61 def test_with_sub_uri
62 Redmine::Utils.relative_url_root = '/foo'
63 @theme.javascripts << 'theme'
64 get '/'
65
66 assert_response :success
67 assert_tag :tag => 'link',
68 :attributes => {:href => %r{^/foo/themes/#{@theme.dir}/stylesheets/application.css}}
69 assert_tag :tag => 'script',
70 :attributes => {:src => %r{^/foo/themes/#{@theme.dir}/javascripts/theme.js}}
71
72 ensure
73 Redmine::Utils.relative_url_root = ''
74 end
60 end
75 end
General Comments 0
You need to be logged in to leave comments. Login now