Sha256: 1fdac5cbbd4f1103b4d77dcf9f264ca5ef2c6be0a17bee4f38eea1372981a277

Contents?: true

Size: 1.14 KB

Versions: 28

Compression:

Stored size: 1.14 KB

Contents

=begin
#Mux API

#Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.

The version of the OpenAPI document: v1
Contact: devex@mux.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.0.1

=end

require 'spec_helper'

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

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
mux_ruby-3.2.0 spec/configuration_spec.rb
mux_ruby-3.1.0 spec/configuration_spec.rb
mux_ruby-3.0.0 spec/configuration_spec.rb
mux_ruby-2.2.0 spec/configuration_spec.rb
mux_ruby-2.1.1 spec/configuration_spec.rb
mux_ruby-2.1.0 spec/configuration_spec.rb
mux_ruby-2.0.0 spec/configuration_spec.rb
mux_ruby-2.0.0.pre.rc.2 spec/configuration_spec.rb