Sha256: 55b20445bd3f00f45850b7be0753933667f030e986e099984d8f9fdac5c3d038
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
=begin #MailSlurp API #For documentation see [developer guide](https://www.mailslurp.com/developers). [Create an account](https://app.mailslurp.com) in the MailSlurp Dashboard to [view your API Key](https://app). For all bugs, feature requests, or help please [see support](https://www.mailslurp.com/support/). OpenAPI spec version: 0.0.1-alpha Contact: contact@mailslurp.dev Generated by: https://openapi-generator.tech OpenAPI Generator version: 3.3.4 =end require 'spec_helper' describe MailSlurpClient::Configuration do let(:config) { MailSlurpClient::Configuration.default } before(:each) do # uncomment below to setup host and base_path # require 'URI' # uri = URI.parse("https://api.mailslurp.com") # MailSlurpClient.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.mailslurp.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.mailslurp.com") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailslurp_client-5.0.0 | spec/configuration_spec.rb |
mailslurp_client-4.3.3 | spec/configuration_spec.rb |