Sha256: a1a4331c7eeae115279ccca5fa964478fbb14196aee84e802421e362dd57cab7

Contents?: true

Size: 828 Bytes

Versions: 1

Compression:

Stored size: 828 Bytes

Contents

# frozen_string_literal: true

describe 'Config instance' do
  it 'should have a project_id' do
    @crowdin = Crowdin::Client.new do |config|
      config.project_id = 1
    end

    expect(@crowdin.config.project_id).to_not be_nil
  end

  it 'should have a api_token' do
    @crowdin = Crowdin::Client.new do |config|
      config.api_token = 'api_token'
    end

    expect(@crowdin.config.api_token).to_not be_nil
  end

  it 'should have a base_url' do
    @crowdin = Crowdin::Client.new do |config|
      config.api_token = 'api_token'
    end

    expect(@crowdin.config.base_url).to_not be_nil
  end

  it 'should have a enable_logger set to false by default' do
    @crowdin = Crowdin::Client.new do |config|
      config.api_token = 'api_token'
    end

    expect(@crowdin.config.enable_logger).eql? false
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
crowdin-api-1.0.0 spec/core/config-instance_spec.rb