From: Jean-Philippe Lang Date: Tue, 13 Dec 2016 20:12:34 +0000 (+0000) Subject: Don't use assert_equal nil. X-Git-Tag: 3.4.0~504 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5a77904a910a71015195457252fe4b60f95e4b89;p=redmine.git Don't use assert_equal nil. git-svn-id: http://svn.redmine.org/redmine/trunk@16072 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb index b093e3109..e3c04f025 100644 --- a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb @@ -447,7 +447,11 @@ class MercurialAdapterTest < ActiveSupport::TestCase def test_hgversion_for(hgversion, version) @adapter.class.expects(:hgversion_from_command_line).returns(hgversion) - assert_equal version, @adapter.class.hgversion + if version + assert_equal version, @adapter.class.hgversion + else + assert_nil @adapter.class.hgversion + end end def test_template_path_for(version, template)