Sha256: fe55ada60c0fa40b569ab82acbecdbc43f09959ee1223e5bb70b730574c29ae7
Contents?: true
Size: 617 Bytes
Versions: 3
Compression:
Stored size: 617 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) } 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
deepl-rb-3.0.2 | spec/resources/text_spec.rb |
deepl-rb-3.0.1 | spec/resources/text_spec.rb |
deepl-rb-3.0.0 | spec/resources/text_spec.rb |