@@ -148,6 +148,14 class RepositoriesControllerTest < ActionController::TestCase | |||
|
148 | 148 | assert_equal "1", assigns(:changeset).revision |
|
149 | 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 | 159 | def test_revision_with_before_nil_and_afer_normal |
|
152 | 160 | get :revision, {:id => 1, :rev => 1} |
|
153 | 161 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now