Sha256: c59a42c47c5173c5785bfd41c242e90f12e072529f128769d4616be49b0f197f
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 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. OpenAPI spec version: 6.6.0.20190329.001 Generated by: https://openapi-generator.tech OpenAPI Generator version: unset =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.2.0 | spec/configuration_spec.rb |