summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_darcs_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-27 18:33:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-27 18:33:35 +0000
commita7a4c9f848783e51a5e7cee7d374879443cfb2be (patch)
treee7989ee108ec3f0585dbdbdfe3e858adee25416f /test/unit/repository_darcs_test.rb
parent76a9101998f85b543a26edaa7ed5be1b2b54a562 (diff)
downloadredmine-a7a4c9f848783e51a5e7cee7d374879443cfb2be.tar.gz
redmine-a7a4c9f848783e51a5e7cee7d374879443cfb2be.zip
Fixed: deleted files should not be shown when browsing a Darcs repository (#2385).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2189 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_darcs_test.rb')
-rw-r--r--test/unit/repository_darcs_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/repository_darcs_test.rb b/test/unit/repository_darcs_test.rb
index ca8c267f2..0c8c9a143 100644
--- a/test/unit/repository_darcs_test.rb
+++ b/test/unit/repository_darcs_test.rb
@@ -49,6 +49,12 @@ class RepositoryDarcsTest < Test::Unit::TestCase
assert_equal 6, @repository.changesets.count
end
+ def test_deleted_files_should_not_be_listed
+ entries = @repository.entries('sources')
+ assert entries.detect {|e| e.name == 'watchers_controller.rb'}
+ assert_nil entries.detect {|e| e.name == 'welcome_controller.rb'}
+ end
+
def test_cat
@repository.fetch_changesets
cat = @repository.cat("sources/welcome_controller.rb", 2)