Sha256: 37bb1b4bf4609bb1db02aaa37af9ecb81f9eab0f06b1b36fbf2031fcb3fb381d
Contents?: true
Size: 1.28 KB
Versions: 13
Compression:
Stored size: 1.28 KB
Contents
=begin #Datadog API V2 Collection #Collection of all Datadog Public endpoints. The version of the OpenAPI document: 1.0 Contact: support@datadoghq.com Generated by: https://openapi-generator.tech Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2020-Present Datadog, Inc. =end require 'spec_helper' describe DatadogAPIClient::V2::Configuration do let(:config) { DatadogAPIClient::V2::Configuration.default } before(:each) do # uncomment below to setup host and base_path # require 'URI' # uri = URI.parse("https://api.datadoghq.com") # DatadogAPIClient::V2.configure do |c| # c.host = uri.host # c.base_path = uri.path # end end describe '#base_url' do it 'should have the default value' do # uncomment below to test default value of the base path # expect(config.base_url).to eq("https://api.datadoghq.com") end it 'should remove trailing slashes' do [nil, '', '/', '//'].each do |base_path| config.base_path = base_path # uncomment below to test trailing slashes # expect(config.base_url).to eq("https://api.datadoghq.com") end end end end
Version data entries
13 entries across 13 versions & 1 rubygems