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 f35829c51..0657c93b2 100644 --- a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb @@ -15,6 +15,12 @@ begin if File.directory?(REPOSITORY_PATH) def setup + adapter_class = Redmine::Scm::Adapters::MercurialAdapter + assert adapter_class + assert adapter_class.client_command + assert_equal true, adapter_class.client_available + assert_equal true, adapter_class.client_version_above?([0, 9, 5]) + @adapter = Redmine::Scm::Adapters::MercurialAdapter.new( REPOSITORY_PATH, nil, @@ -22,7 +28,6 @@ begin nil, 'ISO-8859-1') @diff_c_support = true - @char_1 = CHAR_1_HEX.dup @tag_char_1 = "tag-#{CHAR_1_HEX}-00" @branch_char_0 = "branch-#{CHAR_1_HEX}-00"