Sha256: 1826c3456efd04fdb161e0490411fa6e38a2317eb1bfa798f181c128cadee76b

Contents?: true

Size: 579 Bytes

Versions: 6

Compression:

Stored size: 579 Bytes

Contents

# encoding: utf-8
require File.dirname(__FILE__) + '/../spec_helper'

module SendGrid4r::Factory
  describe ConditionFactory do
    describe 'unit test', :ut do
      before do
        Dotenv.load
      end

      it 'create with full parameters' do
        condition = ConditionFactory.new.create(
          field: 'last_name',
          value: 'Miller',
          operator: 'eq',
          and_or: '')
        expect(condition).to eq(
          field: 'last_name',
          value: 'Miller',
          operator: 'eq',
          and_or: ''
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sendgrid4r-1.15.0 spec/factory/condition_factory_spec.rb
sendgrid4r-1.14.0 spec/factory/condition_factory_spec.rb
sendgrid4r-1.13.0 spec/factory/condition_factory_spec.rb
sendgrid4r-1.12.0 spec/factory/condition_factory_spec.rb
sendgrid4r-1.11.0 spec/factory/condition_factory_spec.rb
sendgrid4r-1.10.0 spec/factory/condition_factory_spec.rb