summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-12 17:43:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-12 17:43:23 +0000
commit667693b32cfaf5ff3c87b705cb494029117c80f4 (patch)
tree733a5e12812b2899bb4faa5912431b0607bce56f /test
parent965ef33192990c53d846e7bc77502dcf66ecd793 (diff)
downloadredmine-667693b32cfaf5ff3c87b705cb494029117c80f4.tar.gz
redmine-667693b32cfaf5ff3c87b705cb494029117c80f4.zip
Fixed that Subversion#load_entries_changesets raises an error if entries is nil.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9823 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/repository_subversion_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/repository_subversion_test.rb b/test/unit/repository_subversion_test.rb
index 699ef886a..e2550453a 100644
--- a/test/unit/repository_subversion_test.rb
+++ b/test/unit/repository_subversion_test.rb
@@ -61,6 +61,11 @@ class RepositorySubversionTest < ActiveSupport::TestCase
assert_kind_of Redmine::Scm::Adapters::Entries, entries
end
+ def test_entries_for_invalid_path_should_return_nil
+ entries = @repository.entries('invalid_path')
+ assert_nil entries
+ end
+
def test_latest_changesets
assert_equal 0, @repository.changesets.count
@repository.fetch_changesets