summaryrefslogtreecommitdiffstats
path: root/test/unit/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-07-08 02:05:09 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-07-08 02:05:09 +0000
commit38cf4a53db726720566f960d1ac2c635f1ef57b9 (patch)
treea27a25c80b3cc280353d68be7ff530260a349129 /test/unit/lib
parentd573878a34658dceb51a60878069ef95469bbece (diff)
downloadredmine-38cf4a53db726720566f960d1ac2c635f1ef57b9.tar.gz
redmine-38cf4a53db726720566f960d1ac2c635f1ef57b9.zip
scm: git: add unit adapter test of cat invalid revision (#8767).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6190 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r--test/unit/lib/redmine/scm/adapters/git_adapter_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
index 2de03eecd..9e4e83229 100644
--- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
@@ -365,6 +365,11 @@ begin
assert_nil @adapter.cat('invalid')
end
+ def test_cat_revision_invalid
+ assert @adapter.cat('README')
+ assert_nil @adapter.cat('README', 'abcd1234efgh')
+ end
+
private
def test_scm_version_for(scm_command_version, version)