scm: darcs: add entries test in invalid revision in model.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5435 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-04-12 05:47:05 +00:00
parent cad14abea7
commit 20b33942ba
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@ class RepositoryDarcsTest < ActiveSupport::TestCase
assert_equal 6, @repository.changesets.count assert_equal 6, @repository.changesets.count
end end
def test_entries_invalid_revision
@repository.fetch_changesets
@repository.reload
assert_nil @repository.entries('', '123')
end
def test_deleted_files_should_not_be_listed def test_deleted_files_should_not_be_listed
@repository.fetch_changesets @repository.fetch_changesets
@repository.reload @repository.reload