зеркало из https://github.com/github/grit.git
Fix tests for Git 1.7.
This commit is contained in:
Родитель
09bae2d065
Коммит
f91f3c8d6f
|
@ -173,7 +173,7 @@ class TestCommit < Test::Unit::TestCase
|
|||
assert patch.include?('test/test_reality.rb | 30 +++++++++++++++---------------')
|
||||
assert patch.include?('@@ -1,17 +1,17 @@')
|
||||
assert patch.include?('+# recurse(t)')
|
||||
assert patch.include?("1.6.")
|
||||
assert patch.include?("1.7.")
|
||||
end
|
||||
|
||||
# inspect
|
||||
|
|
|
@ -16,14 +16,14 @@ class TestGit < Test::Unit::TestCase
|
|||
def test_logs_stderr
|
||||
Grit.debug = true
|
||||
Grit.stubs(:log)
|
||||
Grit.expects(:log).with(includes("git: 'bad' is not a git-command"))
|
||||
Grit.expects(:log).with(includes("git: 'bad' is not a git command"))
|
||||
@git.bad
|
||||
end
|
||||
|
||||
def testl_logs_stderr_when_skipping_timeout
|
||||
Grit.debug = true
|
||||
Grit.stubs(:log)
|
||||
Grit.expects(:log).with(includes("git: 'bad' is not a git-command"))
|
||||
Grit.expects(:log).with(includes("git: 'bad' is not a git command"))
|
||||
@git.bad :timeout => false
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче