Sha256: 31d3e3a9f4a79fb9b4b73c37c153b2fa4b6cc92b6b8583889615052147b40d59

Contents?: true

Size: 510 Bytes

Versions: 4

Compression:

Stored size: 510 Bytes

Contents

# Copyright 2018 Daniel Herzog
# Use of this source code is governed by an MIT
# license that can be found in the LICENSE.md file.
# frozen_string_literal: true

require 'spec_helper'

describe DeepL::API do
  subject(:api) { described_class.new(configuration) }

  let(:configuration) { DeepL::Configuration.new }

  describe '#initialize' do
    context 'when building an API object' do
      it 'saves the configuration' do
        expect(api.configuration).to be(configuration)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
deepl-rb-3.1.0 spec/api/api_spec.rb
deepl-rb-3.0.2 spec/api/api_spec.rb
deepl-rb-3.0.1 spec/api/api_spec.rb
deepl-rb-3.0.0 spec/api/api_spec.rb