summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-13 20:12:34 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-13 20:12:34 +0000
commit5a77904a910a71015195457252fe4b60f95e4b89 (patch)
treea9fd274769bf4321b08001a03d2f0e7eb91a8ce3 /test
parente0912b99f5ab1767b8c34956619d216ad7ab73b1 (diff)
downloadredmine-5a77904a910a71015195457252fe4b60f95e4b89.tar.gz
redmine-5a77904a910a71015195457252fe4b60f95e4b89.zip
Don't use assert_equal nil.
git-svn-id: http://svn.redmine.org/redmine/trunk@16072 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb6
1 files changed, 5 insertions, 1 deletions
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)