Sha256: 56d0f3650a0f6e81a5a1049c0b98314710e48a43c545ff20b2a6ef87817528d5
Contents?: true
Size: 802 Bytes
Versions: 11
Compression:
Stored size: 802 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/../spec_helper' describe SendGrid4r::Factory::SegmentFactory do describe 'unit test', :ut do before do Dotenv.load @segment_factory = SendGrid4r::Factory::SegmentFactory.new @condition_factory = SendGrid4r::Factory::ConditionFactory.new @condition = @condition_factory.create( field: 'last_name', value: 'Miller', operator: 'eq', and_or: '') @expect = {} @expect[:name] = 'Last Name Miller' @expect[:conditions] = [@condition] @expect[:recipient_count] = nil end it 'specify all params' do segment = @segment_factory.create( name: 'Last Name Miller', conditions: [@condition] ) expect(segment).to eq(@expect) end end end
Version data entries
11 entries across 11 versions & 1 rubygems