Sha256: e06ba5eb03f9680943ca4bc71180b2d3ce255d693e06f4491a7ff8cdbb901fb0
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
def local_path(content) file = Tempfile.create "" File.write file, content file.path end def remote_path(content) path = "https://www.example.com/source" stub_request(:get, path).to_return(body: content) path end def yaml_local_path(data) local_path YAML.dump(data) end def yaml_remote_path(data) remote_path YAML.dump(data) end def json_local_path(data) local_path JSON.dump(data) end def json_remote_path(data) remote_path JSON.dump(data) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
open_api-loader-0.0.1 | spec/support/path_helpers.rb |