summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-09-20 15:20:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-09-20 15:20:22 +0000
commit30ad78e57da31443a2026b60bd5d8727d9503321 (patch)
tree39f271f7ba8d107304b605680033866b6e9e9c8c /test/functional/repositories_controller_test.rb
parente89d4825dd2d4da780af0faae210c7a2517f1651 (diff)
downloadredmine-30ad78e57da31443a2026b60bd5d8727d9503321.tar.gz
redmine-30ad78e57da31443a2026b60bd5d8727d9503321.zip
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
Diffstat (limited to 'test/functional/repositories_controller_test.rb')
-rw-r--r--test/functional/repositories_controller_test.rb7
1 files changed, 7 insertions, 0 deletions
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