Sha256: f80c875fe016b99767de8679de497aaf0879b6ba2545e105fb0282fd47a63a02

Contents?: true

Size: 500 Bytes

Versions: 7

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe DeepL::Resources::Text do
  subject { described_class.new('Target', 'es', nil, nil) }

  describe '#initialize' do
    context 'When building a basic object' do
      it 'should create a resource' do
        expect(subject).to be_a(described_class)
      end

      it 'should assign the attributes' do
        expect(subject.text).to eq('Target')
        expect(subject.detected_source_language).to eq('es')
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
deepl-rb-2.5.3 spec/resources/text_spec.rb
deepl-rb-2.5.2 spec/resources/text_spec.rb
deepl-rb-2.5.1 spec/resources/text_spec.rb
deepl-rb-2.5.0 spec/resources/text_spec.rb
deepl-rb-2.4.0 spec/resources/text_spec.rb
deepl-rb-2.3.1 spec/resources/text_spec.rb
deepl-rb-2.3.0 spec/resources/text_spec.rb