##// END OF EJS Templates
Adds a test for project menu item when displaying a revision....
Jean-Philippe Lang -
r8900:fba7789bb1b0
parent child
Show More
@@ -148,6 +148,14 class RepositoriesControllerTest < ActionController::TestCase
148 assert_equal "1", assigns(:changeset).revision
148 assert_equal "1", assigns(:changeset).revision
149 end
149 end
150
150
151 def test_revision_should_not_change_the_project_menu_link
152 get :revision, :id => 1, :rev => 1
153 assert_response :success
154
155 assert_tag 'a', :attributes => {:href => '/projects/ecookbook/repository', :class => /repository/},
156 :ancestor => {:attributes => {:id => 'main-menu'}}
157 end
158
151 def test_revision_with_before_nil_and_afer_normal
159 def test_revision_with_before_nil_and_afer_normal
152 get :revision, {:id => 1, :rev => 1}
160 get :revision, {:id => 1, :rev => 1}
153 assert_response :success
161 assert_response :success
General Comments 0
You need to be logged in to leave comments. Login now