Commit 031e5bd13a82c83a6761440b89aea0388ed346e4
1 parent
8f30e7a2
Exists in
master
and in
29 other branches
Fixed failing tests
test/functional/application_controller_test.rb test/functional/profile_themes_controller_test.rb
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/controllers/themes_controller.rb
@@ -12,7 +12,7 @@ class ThemesController < ApplicationController | @@ -12,7 +12,7 @@ class ThemesController < ApplicationController | ||
12 | 12 | ||
13 | def index | 13 | def index |
14 | @environment = environment | 14 | @environment = environment |
15 | - @themes = environment.themes + Theme.approved_themes(target) | 15 | + @themes = (environment.themes + Theme.approved_themes(target)).sort_by { |t| t.name } |
16 | 16 | ||
17 | @current_theme = target.theme | 17 | @current_theme = target.theme |
18 | 18 |
test/functional/application_controller_test.rb
@@ -233,7 +233,7 @@ class ApplicationControllerTest < ActionController::TestCase | @@ -233,7 +233,7 @@ class ApplicationControllerTest < ActionController::TestCase | ||
233 | get :index | 233 | get :index |
234 | 234 | ||
235 | assert_tag :tag => 'div', :attributes => { :id => 'theme-test-panel' }, :descendant => { | 235 | assert_tag :tag => 'div', :attributes => { :id => 'theme-test-panel' }, :descendant => { |
236 | - :tag => 'a', :attributes => { :href => '/myprofile/testinguser/themes/edit/my-test-theme'} | 236 | + :tag => 'a', :attributes => { :href => '/myprofile/testinguser/profile_themes/edit/my-test-theme'} |
237 | } | 237 | } |
238 | #{ :tag => 'a', :attributes => { :href => '/myprofile/testinguser/themes/stop_test/my-test-theme'} } | 238 | #{ :tag => 'a', :attributes => { :href => '/myprofile/testinguser/themes/stop_test/my-test-theme'} } |
239 | end | 239 | end |