Sha256: c4de7eb2769b08d2fdfc7f0fda482bbf1ff9dc2aec04d76b5d3d3651946deb3c
Contents?: true
Size: 1.29 KB
Versions: 4
Compression:
Stored size: 1.29 KB
Contents
=begin #Payment Gateway API Specification. #The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. The version of the OpenAPI document: 6.12.0.20200605.001 Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.1 =end require 'spec_helper' describe OpenapiClient::Configuration do let(:config) { OpenapiClient::Configuration.default } before(:each) do # uncomment below to setup host and base_path # require 'URI' # uri = URI.parse("https://cert.api.firstdata.com/gateway/v2") # OpenapiClient.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://cert.api.firstdata.com/gateway/v2") 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://cert.api.firstdata.com/gateway/v2") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems