Project

General

Profile

Actions

Defect #40205

closed

ThemesTest may fail if a third-party theme having theme.js is installed

Added by Go MAEDA 10 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

ThemesTest fail if a third-party theme having theme.js is installed, and if the name of the theme is the last in alphabetical order among the installed themes.

Failure:
ThemesTest#test_with_sub_uri [test/integration/lib/redmine/themes_test.rb:100]:
Expected at least 1 element matching "script[src^=\"/foo/assets/themes/x-theme/theme.js\"]", found 0.
Expected 0 to be >= 1.

bin/rails test test/integration/lib/redmine/themes_test.rb:92

.F

Failure:
ThemesTest#test_with_theme_js [test/integration/lib/redmine/themes_test.rb:56]:
Expected exactly 1 element matching "script[src^=\"/assets/themes/x-theme/theme.js\"]", found 0.
Expected: 1
  Actual: 0

bin/rails test test/integration/lib/redmine/themes_test.rb:50

You can reproduce this error with the following procedure.

bin/rails test test/integration/lib/redmine/themes_test.rb
git clone https://github.com/farend/redmine_theme_farend_bleuclair.git public/themes/x-theme
bin/rails test test/integration/lib/redmine/themes_test.rb
Actions

Also available in: Atom PDF