Sha256: 3dc0d5a12a5c2e8d93b9705c438092997cb5585cce1e46bbfadb019c16294062
Contents?: true
Size: 1.29 KB
Versions: 1
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.14.0.20201015.001 Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.1.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
first_data_gateway-1.9.0 | spec/configuration_spec.rb |