mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 19:36:00 +01:00
scm: git: add scm command tests at unit model test (#4273).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5362 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -34,6 +34,12 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
|||||||
WINDOWS_PASS = false
|
WINDOWS_PASS = false
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
klass = Repository::Git
|
||||||
|
assert_equal "Git", klass.scm_name
|
||||||
|
assert klass.scm_adapter_class
|
||||||
|
assert_not_equal "", klass.scm_command
|
||||||
|
assert_equal true, klass.scm_available
|
||||||
|
|
||||||
@project = Project.find(3)
|
@project = Project.find(3)
|
||||||
@repository = Repository::Git.create(
|
@repository = Repository::Git.create(
|
||||||
:project => @project,
|
:project => @project,
|
||||||
|
|||||||
Reference in New Issue
Block a user