spec/models/entity_spec.rb in maestrano-connector-rails-1.3.1 vs spec/models/entity_spec.rb in maestrano-connector-rails-1.3.2

- old
+ new

@@ -114,9 +114,23 @@ describe 'count_entities' do it 'returns the array size' do expect(subject.count_entities([*1..27])).to eql(27) end end + + describe 'public_connec_entity_name' do + it 'returns the connec_entity_name' do + allow(subject).to receive(:connec_entity_name).and_return('tree') + expect(subject.public_connec_entity_name).to eql('trees') + end + end + + describe 'public_external_entity_name' do + it 'returns the external_entity_name' do + allow(subject).to receive(:external_entity_name).and_return('tree') + expect(subject.public_external_entity_name).to eql('trees') + end + end end describe 'instance methods' do let!(:organization) { create(:organization, uid: 'cld-123') } let!(:connec_client) { Maestrano::Connec::Client[organization.tenant].new(organization.uid) } \ No newline at end of file