Sha256: c414a2bb9dd535330f3659296acfd1a3c2445f4a687ddea4a116926912103723

Contents?: true

Size: 833 Bytes

Versions: 64

Compression:

Stored size: 833 Bytes

Contents

require 'spec_helper'

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

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

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
phrase-4.4.0 spec/configuration_spec.rb
phrase-4.3.0 spec/configuration_spec.rb
phrase-3.7.1 spec/configuration_spec.rb
phrase-3.7.0 spec/configuration_spec.rb
phrase-3.6.0 spec/configuration_spec.rb
phrase-3.5.0 spec/configuration_spec.rb
phrase-3.4.0 spec/configuration_spec.rb
phrase-3.3.0 spec/configuration_spec.rb
phrase-3.2.1 spec/configuration_spec.rb
phrase-3.2.0 spec/configuration_spec.rb
phrase-3.1.1 spec/configuration_spec.rb
phrase-3.1.0 spec/configuration_spec.rb
phrase-3.0.0 spec/configuration_spec.rb
phrase-2.26.0 spec/configuration_spec.rb
phrase-2.25.0 spec/configuration_spec.rb
phrase-2.24.0 spec/configuration_spec.rb
phrase-2.23.0 spec/configuration_spec.rb
phrase-2.22.2 spec/configuration_spec.rb
phrase-2.22.1 spec/configuration_spec.rb
phrase-2.22.0 spec/configuration_spec.rb