summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_subversion_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-01-13 12:04:30 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-01-13 12:04:30 +0000
commit98b3a5065756995ff5768c9f354790549fd81509 (patch)
tree0f775d8a265bcb25957739340ceb9fdad352007c /test/unit/repository_subversion_test.rb
parent43f6a626808a41ea3c7a82947a0db0b3fbcb7ebd (diff)
downloadredmine-98b3a5065756995ff5768c9f354790549fd81509.tar.gz
redmine-98b3a5065756995ff5768c9f354790549fd81509.zip
scm: fix error on revision page for empty revision (#7307).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4703 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_subversion_test.rb')
-rw-r--r--test/unit/repository_subversion_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/repository_subversion_test.rb b/test/unit/repository_subversion_test.rb
index 46a4ad74a..fd761823b 100644
--- a/test/unit/repository_subversion_test.rb
+++ b/test/unit/repository_subversion_test.rb
@@ -96,6 +96,14 @@ class RepositorySubversionTest < ActiveSupport::TestCase
assert_equal c.revision, c.identifier
end
+ def test_find_changeset_by_empty_name
+ @repository.fetch_changesets
+ @repository.reload
+ ['', ' ', nil].each do |r|
+ assert_nil @repository.find_changeset_by_name(r)
+ end
+ end
+
def test_identifier_nine_digit
c = Changeset.new(:repository => @repository, :committed_on => Time.now,
:revision => '123456789', :comments => 'test')