Skip to content

Commit db87119

Browse files
committed
Merge pull request #247 from bdunne/fix_local_tests
Fix local spec failures on ruby 3.1
2 parents ce16c52 + 0e9fa4d commit db87119

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/linux_admin/registration_system.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def self.white_list_methods
4747
private_class_method :white_list_methods
4848

4949
def install_server_certificate(server, cert_path)
50-
host = server.start_with?("http") ? URI.parse(server).host : server
50+
require 'uri'
51+
host = server.start_with?("http") ? ::URI.parse(server).host : server
5152

5253
LinuxAdmin::Rpm.upgrade("http://#{host}/#{cert_path}")
5354
end

spec/spec_helper.rb

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
end
8686
end
8787

88+
require 'rspec/support/differ'
8889
require 'linux_admin'
8990

9091
def etc_issue_contains(contents)

0 commit comments

Comments
 (0)