Commit 483ff195 authored by Micaël Bergeron's avatar Micaël Bergeron

improvements from feedback

parent d82cc493
#
# Monkey patching the https support for private urls
# See https://gitlab.com/gitlab-org/gitlab-ee/issues/4879
#
module Fog
module Storage
class GoogleXML
class File < Fog::Model
module MonkeyPatch
# Monkey patch this to use `get_https_url`
def url(expires)
requires :key
collection.get_https_url(key, expires)
......
require 'spec_helper'
describe Fog::Storage::GoogleXML::File do
describe 'Fog::Storage::GoogleXML::File' do
let(:storage) do
Fog.mock!
Fog::Storage.new({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment