Adds a test for project menu item when displaying a revision.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9020 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-02-27 15:26:35 +00:00
parent 4384db597c
commit fba7789bb1
1 changed files with 8 additions and 0 deletions

View File

@ -148,6 +148,14 @@ class RepositoriesControllerTest < ActionController::TestCase
assert_equal "1", assigns(:changeset).revision
end
def test_revision_should_not_change_the_project_menu_link
get :revision, :id => 1, :rev => 1
assert_response :success
assert_tag 'a', :attributes => {:href => '/projects/ecookbook/repository', :class => /repository/},
:ancestor => {:attributes => {:id => 'main-menu'}}
end
def test_revision_with_before_nil_and_afer_normal
get :revision, {:id => 1, :rev => 1}
assert_response :success