Commit 031e5bd13a82c83a6761440b89aea0388ed346e4
1 parent
8f30e7a2
Exists in
master
and in
28 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 | 12 | |
13 | 13 | def index |
14 | 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 | 17 | @current_theme = target.theme |
18 | 18 | ... | ... |
test/functional/application_controller_test.rb
... | ... | @@ -233,7 +233,7 @@ class ApplicationControllerTest < ActionController::TestCase |
233 | 233 | get :index |
234 | 234 | |
235 | 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 | 238 | #{ :tag => 'a', :attributes => { :href => '/myprofile/testinguser/themes/stop_test/my-test-theme'} } |
239 | 239 | end | ... | ... |