Fixed: RepositoriesController#revision may show wrong revision (#3779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2898 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -77,6 +77,13 @@ class RepositoriesControllerTest < ActionController::TestCase
|
||||
)
|
||||
end
|
||||
|
||||
def test_revision
|
||||
get :revision, :id => 1, :rev => 1
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:changeset)
|
||||
assert_equal "1", assigns(:changeset).revision
|
||||
end
|
||||
|
||||
def test_revision_with_before_nil_and_afer_normal
|
||||
get :revision, {:id => 1, :rev => 1}
|
||||
assert_response :success
|
||||
|
||||
Reference in New Issue
Block a user