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.20.0 spec/configuration_spec.rb
mux_ruby-3.19.0 spec/configuration_spec.rb
mux_ruby-3.18.0 spec/configuration_spec.rb
mux_ruby-3.17.0 spec/configuration_spec.rb
mux_ruby-3.15.0 spec/configuration_spec.rb
mux_ruby-3.14.0 spec/configuration_spec.rb
mux_ruby-3.13.0 spec/configuration_spec.rb
mux_ruby-3.12.0 spec/configuration_spec.rb
mux_ruby-3.11.1 spec/configuration_spec.rb
mux_ruby-3.11.0 spec/configuration_spec.rb
mux_ruby-3.9.0 spec/configuration_spec.rb
mux_ruby-3.8.0 spec/configuration_spec.rb
mux_ruby-3.7.0 spec/configuration_spec.rb
mux_ruby-3.6.0 spec/configuration_spec.rb
mux_ruby-3.5.2 spec/configuration_spec.rb
mux_ruby-3.5.1 spec/configuration_spec.rb
mux_ruby-3.5.0 spec/configuration_spec.rb
mux_ruby-3.4.0 spec/configuration_spec.rb
mux_ruby-3.3.1 spec/configuration_spec.rb
mux_ruby-3.3.0 spec/configuration_spec.rb