From: Jean-Philippe Lang Date: Mon, 27 Feb 2012 15:26:35 +0000 (+0000) Subject: Adds a test for project menu item when displaying a revision. X-Git-Tag: 1.4.0~294 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fba7789bb1b0094d396648f4441319e04bc5e61c;p=redmine.git 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 --- diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb index 0f0c62fc2..48ea1ac08 100644 --- a/test/functional/repositories_controller_test.rb +++ b/test/functional/repositories_controller_test.rb @@ -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