diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-11 11:28:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-11 11:28:09 +0000 |
commit | a89468ebc8a8aa082a667bbb1c44f095f8444579 (patch) | |
tree | 6a9c5a728e322e93102a89d9b4586ccae321bafb /test/integration | |
parent | fa52c5d9fc602981ac3d862b4a2ec7a5a70c0b9e (diff) | |
download | redmine-a89468ebc8a8aa082a667bbb1c44f095f8444579.tar.gz redmine-a89468ebc8a8aa082a667bbb1c44f095f8444579.zip |
Adds rel=stylesheet condition for stylesheets assertions.
git-svn-id: http://svn.redmine.org/redmine/trunk@12648 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/lib/redmine/themes_test.rb | 4 |
1 files 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 |