You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2012/09/19 20:43:27 UTC

[38/50] git commit: [#1968] ticket:159 TD Write a test

[#1968] ticket:159 TD Write a test


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/b36ffafb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/b36ffafb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/b36ffafb

Branch: refs/heads/master
Commit: b36ffafb70e02d72ab6c9ba0524fabbf85d94991
Parents: 64bac66
Author: Yuriy Arhipov <yu...@yandex.ru>
Authored: Thu Aug 30 16:09:12 2012 +0400
Committer: Dave Brondsema <db...@geek.net>
Committed: Mon Sep 10 15:35:04 2012 +0000

----------------------------------------------------------------------
 .../forgegit/tests/functional/test_controllers.py  |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b36ffafb/ForgeGit/forgegit/tests/functional/test_controllers.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/tests/functional/test_controllers.py b/ForgeGit/forgegit/tests/functional/test_controllers.py
index 6c136b5..866312b 100644
--- a/ForgeGit/forgegit/tests/functional/test_controllers.py
+++ b/ForgeGit/forgegit/tests/functional/test_controllers.py
@@ -95,6 +95,12 @@ class TestRootController(_TestCase):
     def test_log(self):
         resp = self.app.get('/src-git/ref/master~/log/')
 
+    def test_limit_log(self):
+        resp = self.app.get(self._get_ci()+'log/')
+        assert "pager_curpage" not in resp
+        resp = self.app.get(self._get_ci()+'log/?limit=1')
+        assert "pager_curpage" in resp
+
     def test_tags(self):
         resp = self.app.get('/src-git/ref/master~/tags/')