summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_darcs_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-12 05:47:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-12 05:47:05 +0000
commit20b33942bad7a581cae27f074dd3c51805b6774d (patch)
tree1ce737f2a834e406cb3acf86b8b673e6f2e0e33f /test/unit/repository_darcs_test.rb
parentcad14abea7dbc32ba5d2f0ac9a42ee90b944ebe7 (diff)
downloadredmine-20b33942bad7a581cae27f074dd3c51805b6774d.tar.gz
redmine-20b33942bad7a581cae27f074dd3c51805b6774d.zip
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
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 2e16973c5..6d010cdf6 100644
--- a/test/unit/repository_darcs_test.rb
+++ b/test/unit/repository_darcs_test.rb
@@ -52,6 +52,12 @@ class RepositoryDarcsTest < ActiveSupport::TestCase
assert_equal 6, @repository.changesets.count
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
@repository.fetch_changesets
@repository.reload