Sha256: 4e13c623439809e56ba32b85035a29ddf91b8967a70f0beadc2bd2602d3c70b2
Contents?: true
Size: 719 Bytes
Versions: 4
Compression:
Stored size: 719 Bytes
Contents
# frozen_string_literal: true RSpec.describe TwilioBase::Sync::Service do describe '.create' do it 'creates a new sync service' do expect { described_class.create } .to change { TwilioBase::Fake::Sync.sync_services.count }.by(1) end it 'assigns default friendly name to the service' do described_class.create expect(TwilioBase::Fake::Sync.sync_services.last.friendly_name) .to eq Twilio::Sync::Service::DEFAULT_FRIENDLY_NAME end it 'assigns spcified friendly name to the service' do name = 'Test name' described_class.create(friendly_name: name) expect(TwilioBase::Fake::Sync.sync_services.last.friendly_name).to eq name end end end
Version data entries
4 entries across 4 versions & 1 rubygems