Sha256: 9390fdaeca807a77cf13465d0025ee61a0e33555d9dfed79e6918b6f6d93346a

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

=begin
#DocRaptor

#A native client library for the DocRaptor HTML to PDF/XLS service.

OpenAPI spec version: 1.4.0

Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.4.14

=end

require 'spec_helper'

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
docraptor-2.0.0 spec/configuration_spec.rb
docraptor-1.4.0 spec/configuration_spec.rb