@@ -488,6 +488,7 module ApplicationHelper | |||||
488 | css << 'theme-' + theme.name |
|
488 | css << 'theme-' + theme.name | |
489 | end |
|
489 | end | |
490 |
|
490 | |||
|
491 | css << 'project-' + @project.identifier if @project && @project.identifier.present? | |||
491 | css << 'controller-' + controller_name |
|
492 | css << 'controller-' + controller_name | |
492 | css << 'action-' + action_name |
|
493 | css << 'action-' + action_name | |
493 | css.join(' ') |
|
494 | css.join(' ') |
@@ -589,4 +589,9 class ProjectsControllerTest < ActionController::TestCase | |||||
589 | assert_response :success |
|
589 | assert_response :success | |
590 | assert_template 'show' |
|
590 | assert_template 'show' | |
591 | end |
|
591 | end | |
|
592 | ||||
|
593 | def test_body_should_have_project_css_class | |||
|
594 | get :show, :id => 1 | |||
|
595 | assert_select 'body.project-ecookbook' | |||
|
596 | end | |||
592 | end |
|
597 | end |
General Comments 0
You need to be logged in to leave comments.
Login now