summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_git_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-10-04 13:24:06 +0000
committerGo MAEDA <maeda@farend.jp>2018-10-04 13:24:06 +0000
commit7d615fd516c60c0c448d3a35f56641e14b463c61 (patch)
tree7d788ac9b72c7c729f5c14b43e619a8360e05a67 /test/functional/repositories_git_controller_test.rb
parentdcc7ecb34a61d55193572ca8bc66c9859f3d6e49 (diff)
downloadredmine-7d615fd516c60c0c448d3a35f56641e14b463c61.tar.gz
redmine-7d615fd516c60c0c448d3a35f56641e14b463c61.zip
Repository entry pagination (#29395).
Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@17568 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_git_controller_test.rb')
-rw-r--r--test/functional/repositories_git_controller_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb
index 5b9a02956..0142f2be5 100644
--- a/test/functional/repositories_git_controller_test.rb
+++ b/test/functional/repositories_git_controller_test.rb
@@ -243,6 +243,17 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
assert_select 'tr#L11 td.line-code', :text => /WITHOUT ANY WARRANTY/
end
+ def test_entry_show_should_render_pagination
+ get :entry, :params => {
+ :id => PRJ_ID,
+ :repository_id => @repository.id,
+ :path => repository_path_hash(['README'])[:param]
+ }
+ assert_response :success
+ assert_select 'ul.pages li.next', :text => /next/i
+ assert_select 'ul.pages li.previous', :text => /previous/i
+ end
+
def test_entry_show_latin_1
if @ruby19_non_utf8_pass
puts_ruby19_non_utf8_pass()