Sha256: 8f4bb1737280fa2858788b00999cd407a8b6eadac4b27bdbfa41e273a4d4ff37
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 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::Resources::Text do subject(:text) { described_class.new('Target', 'es', nil, nil, nil) } describe '#initialize' do context 'when building a basic object' do it 'creates a resource' do expect(text).to be_a(described_class) end it 'assigns the attributes' do expect(text.text).to eq('Target') expect(text.detected_source_language).to eq('es') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deepl-rb-3.1.0 | spec/resources/text_spec.rb |