Sha256: faeee1e73d97ed28a5f63bed8aa9be7ba49ca252ab2e7e7a258e3fa4116d48a2

Contents?: true

Size: 1.11 KB

Versions: 38

Compression:

Stored size: 1.11 KB

Contents

=begin
#DevCycle Bucketing API

#Documents the DevCycle Bucketing API which provides and API interface to User Bucketing and for generated SDKs.

The version of the OpenAPI document: 1.0.0

Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.3.0

=end

require 'spec_helper'

describe DevCycle::Configuration do
  let(:config) { DevCycle::Configuration.default }

  before(:each) do
    # uncomment below to setup host and base_path
    # require 'URI'
    # uri = URI.parse("https://bucketing-api.devcycle.com")
    # DevCycle.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://bucketing-api.devcycle.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://bucketing-api.devcycle.com")
      end
    end
  end
end

Version data entries

38 entries across 34 versions & 3 rubygems

Version Path
devcycle-ruby-server-sdk-2.1.1 spec/configuration_spec.rb
devcycle-ruby-server-sdk-2.1.0 spec/configuration_spec.rb
devcycle-ruby-server-sdk-2.0.3 spec/configuration_spec.rb
devcycle-ruby-server-sdk-2.0.2 spec/configuration_spec.rb
devcycle-ruby-server-sdk-2.0.1 spec/configuration_spec.rb
devcycle-ruby-server-sdk-2.0.0 spec/configuration_spec.rb
devcycle-ruby-server-sdk-1.2.0 spec/configuration_spec.rb
devcycle-ruby-server-sdk-1.1.1 spec/configuration_spec.rb
devcycle-ruby-server-sdk-1.1.0 spec/configuration_spec.rb
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/3.1.0/gems/devcycle-ruby-server-sdk-1.0.0/spec/configuration_spec.rb
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/3.0.0/gems/devcycle-ruby-server-sdk-1.0.0/spec/configuration_spec.rb
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/2.6.0/gems/devcycle-server-sdk-1.0.1/spec/configuration_spec.rb
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/2.6.0/gems/devcycle-ruby-server-sdk-1.0.0/spec/configuration_spec.rb
devcycle-ruby-server-sdk-1.0.0 spec/configuration_spec.rb
ruby-server-sdk-1.0.2 spec/configuration_spec.rb
ruby-server-sdk-1.0.1 spec/configuration_spec.rb
devcycle-server-sdk-1.0.1 spec/configuration_spec.rb
devcycle-server-sdk-1.0.0 spec/configuration_spec.rb