Sha256: c5c8aa2f91beac74c92b91903ed2cb01a3be83686a88638cb58c7a381f7de667
Contents?: true
Size: 861 Bytes
Versions: 6
Compression:
Stored size: 861 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/../spec_helper' module SendGrid4r::Factory describe SegmentFactory do describe 'unit test', :ut do before do Dotenv.load end let(:condition) do ConditionFactory.new.create( field: 'last_name', value: 'Miller', operator: 'eq', and_or: '' ) end it 'create with mandatory parameters' do segment = SegmentFactory.new.create(conditions: [condition]) expect(segment).to eq(conditions: [condition]) end it 'create with full parameters' do segment = SegmentFactory.new.create( name: 'Last Name Miller', conditions: [condition] ) expect(segment).to eq( name: 'Last Name Miller', conditions: [condition] ) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems