Adds rel=stylesheet condition for stylesheets assertions.

git-svn-id: http://svn.redmine.org/redmine/trunk@12648 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-01-11 11:28:09 +00:00
parent fa52c5d9fc
commit a89468ebc8
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class ThemesTest < ActionController::IntegrationTest
get '/'
assert_response :success
assert_select "link[href^=/themes/#{@theme.dir}/stylesheets/application.css]"
assert_select "link[rel=stylesheet][href^=/themes/#{@theme.dir}/stylesheets/application.css]"
end
def test_without_theme_js
@ -90,7 +90,7 @@ class ThemesTest < ActionController::IntegrationTest
get '/'
assert_response :success
assert_select "link[href^=/foo/themes/#{@theme.dir}/stylesheets/application.css]"
assert_select "link[rel=stylesheet][href^=/foo/themes/#{@theme.dir}/stylesheets/application.css]"
assert_select "script[src^=/foo/themes/#{@theme.dir}/javascripts/theme.js]"
assert_select "link[rel=shortcut icon][href^=/foo/themes/#{@theme.dir}/favicon/a.ico]"
ensure