summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_filesystem_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-10 17:01:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-10 17:01:33 +0000
commit9b60214b3a3e25691400cd3bbf11191429bc3c1c (patch)
tree38c618b12de578d1c616ead006d58a9bc5161f4b /test/unit/repository_filesystem_test.rb
parent4d12bea397bc1a79c16ec8000bbb8e5fae323c4b (diff)
downloadredmine-9b60214b3a3e25691400cd3bbf11191429bc3c1c.tar.gz
redmine-9b60214b3a3e25691400cd3bbf11191429bc3c1c.zip
Fixed that Repository#entries returns an Array.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9804 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_filesystem_test.rb')
-rw-r--r--test/unit/repository_filesystem_test.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/unit/repository_filesystem_test.rb b/test/unit/repository_filesystem_test.rb
index 25e7c88a9..1cb2e7bda 100644
--- a/test/unit/repository_filesystem_test.rb
+++ b/test/unit/repository_filesystem_test.rb
@@ -70,7 +70,12 @@ class RepositoryFilesystemTest < ActiveSupport::TestCase
end
def test_entries
- assert_equal 3, @repository.entries("", 2).size
+ entries = @repository.entries("", 2)
+ assert_kind_of Redmine::Scm::Adapters::Entries, entries
+ assert_equal 3, entries.size
+ end
+
+ def test_entries_in_directory
assert_equal 2, @repository.entries("dir", 3).size
end