From 30ad78e57da31443a2026b60bd5d8727d9503321 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 20 Sep 2009 15:20:22 +0000 Subject: 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 --- test/functional/repositories_controller_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/functional/repositories_controller_test.rb') diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb index d786c2e21..5ff2a6a92 100644 --- a/test/functional/repositories_controller_test.rb +++ b/test/functional/repositories_controller_test.rb @@ -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 -- cgit v1.2.3