Skip to content

Commit

Permalink
Fix local spec failures on ruby 3
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Apr 30, 2024
1 parent ce16c52 commit ef2cc02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/linux_admin/registration_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def self.white_list_methods
private_class_method :white_list_methods

def install_server_certificate(server, cert_path)
host = server.start_with?("http") ? URI.parse(server).host : server
require 'uri'
host = server.start_with?("http") ? ::URI.parse(server).host : server

LinuxAdmin::Rpm.upgrade("http://#{host}/#{cert_path}")
end
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
end
end

require 'rspec/support/differ'
require 'linux_admin'

def etc_issue_contains(contents)
Expand Down

0 comments on commit ef2cc02

Please sign in to comment.