diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-08 02:05:09 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-08 02:05:09 +0000 |
commit | 38cf4a53db726720566f960d1ac2c635f1ef57b9 (patch) | |
tree | a27a25c80b3cc280353d68be7ff530260a349129 /test/unit/lib | |
parent | d573878a34658dceb51a60878069ef95469bbece (diff) | |
download | redmine-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.rb | 5 |
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) |