Don't use assert_equal nil.

git-svn-id: http://svn.redmine.org/redmine/trunk@16072 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-12-13 20:12:34 +00:00
parent e0912b99f5
commit 5a77904a91

View File

@@ -447,7 +447,11 @@ class MercurialAdapterTest < ActiveSupport::TestCase
def test_hgversion_for(hgversion, version)
@adapter.class.expects(:hgversion_from_command_line).returns(hgversion)
if version
assert_equal version, @adapter.class.hgversion
else
assert_nil @adapter.class.hgversion
end
end
def test_template_path_for(version, template)