]> source.dussan.org Git - redmine.git/commitdiff
Adds a test for project menu item when displaying a revision.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 27 Feb 2012 15:26:35 +0000 (15:26 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 27 Feb 2012 15:26:35 +0000 (15:26 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9020 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_controller_test.rb

index 0f0c62fc28806a26a74b68cf4756760c38c5f9c6..48ea1ac082d658d63d1cb8122d3d548ec595bd99 100644 (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