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