spec/resources/text_spec.rb in deepl-rb-2.2.4 vs spec/resources/text_spec.rb in deepl-rb-2.3.0

- old
+ new

@@ -1,15 +1,15 @@ # frozen_string_literal: true require 'spec_helper' describe DeepL::Resources::Text do - subject { DeepL::Resources::Text.new('Target', 'es', nil, nil) } + 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(DeepL::Resources::Text) + 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')