From a89468ebc8a8aa082a667bbb1c44f095f8444579 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 11 Jan 2014 11:28:09 +0000 Subject: [PATCH] Adds rel=stylesheet condition for stylesheets assertions. git-svn-id: http://svn.redmine.org/redmine/trunk@12648 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/lib/redmine/themes_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/lib/redmine/themes_test.rb b/test/integration/lib/redmine/themes_test.rb index 169a9f151..8f652caf5 100644 --- a/test/integration/lib/redmine/themes_test.rb +++ b/test/integration/lib/redmine/themes_test.rb @@ -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