summaryrefslogtreecommitdiff
path: root/spec/support/helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers.rb')
-rw-r--r--spec/support/helpers.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index cf76a84b7c..922555ff60 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -279,7 +279,7 @@ module Spec
if contents.nil?
File.open("Gemfile.lock", "r", &:read)
else
- create_file("Gemfile.lock", normalize_uri_file(contents), *args)
+ create_file("Gemfile.lock", contents, *args)
end
end
@@ -289,15 +289,6 @@ module Spec
str.gsub(/^#{spaces}/, "")
end
- def normalize_uri_file(str)
- # URI::File of Ruby 2.6 normalize localhost variable with file protocol.
- if defined?(URI::File)
- str.gsub(%r{file:\/\/localhost}, "file://")
- else
- str
- end
- end
-
def install_gemfile(*args)
gemfile(*args)
opts = args.last.is_a?(Hash) ? args.last : {}