diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-07-06 02:07:46 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-07-06 02:07:46 +0000 |
commit | 56af944afa1406358685a568072bc7eaed5143ef (patch) | |
tree | 30f11bf2da613c002af7fd0692fdc157f0d3d7c6 /test/functional/repositories_git_controller_test.rb | |
parent | 48a5460da4be45e0e7e5946b870b9a91ee27f086 (diff) | |
download | redmine-56af944afa1406358685a568072bc7eaed5143ef.tar.gz redmine-56af944afa1406358685a568072bc7eaed5143ef.zip |
Extend changes.path and changes.from_path to support longer paths. #5771
Long paths to SCM files would be truncated or wouldn't insert into some
databases. This extends those fields to support arbitrary length filenames.
Contributed by Holger Just
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3828 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_git_controller_test.rb')
-rw-r--r-- | test/functional/repositories_git_controller_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 37c6fb848..317261a13 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -50,8 +50,9 @@ class RepositoriesGitControllerTest < ActionController::TestCase assert_response :success assert_template 'show' assert_not_nil assigns(:entries) - assert_equal 6, assigns(:entries).size + assert_equal 7, assigns(:entries).size assert assigns(:entries).detect {|e| e.name == 'images' && e.kind == 'dir'} + assert assigns(:entries).detect {|e| e.name == 'this_is_a_really_long_and_verbose_directory_name' && e.kind == 'dir'} assert assigns(:entries).detect {|e| e.name == 'sources' && e.kind == 'dir'} assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'} assert assigns(:entries).detect {|e| e.name == 'copied_README' && e.kind == 'file'} |