Sha256: 3d72c49e913b48b22551425be32d1c5830c3e00d37b6ff52241740db1cff3d5a
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
=begin #DaDaPush Public API #DaDaPush: Real-time Notifications App Send real-time notifications through our API without coding and maintaining your own app for iOS or Android devices. The version of the OpenAPI document: v1 Contact: contacts@dadapush.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.0.2 =end require 'spec_helper' describe DaDaPushClient::Configuration do let(:config) { DaDaPushClient::Configuration.default } before(:each) do # uncomment below to setup host and base_path # require 'URI' # uri = URI.parse("https://www.dadapush.com") # DaDaPushClient.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://www.dadapush.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://www.dadapush.com") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dadapush_client-1.0.1 | spec/configuration_spec.rb |
dadapush_client-1.0.0 | spec/configuration_spec.rb |