Sha256: 6ae09e217d64fdf661adcece0ea94c2773d26f709120ff37171babe1dc08d29a

Contents?: true

Size: 547 Bytes

Versions: 63

Compression:

Stored size: 547 Bytes

Contents

# Basic factory settings made according to values defined at
# https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_case.htm
FactoryBot.define do
  <%= "factory :#{@soql_object.reference} do" %>
    <% @default_fields.each do |field| %>
    <%= LeapSalesforce::Default::Factory.value_for(field, @soql_object.class_name) %> <% end %>
    trait :all do
      <% @other_fields.each do |field| %>
      <%= LeapSalesforce::Default::Factory.value_for(field, @soql_object.class_name) %> <% end %>
    end
  <%= 'end' %>
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
leap_salesforce-1.5.0 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.4.4 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.4.3 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.4.2 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.4.1 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.4.0 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.3.1 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.3.0 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.2.2 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.2.1 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.2.0 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.1.2 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.1.1 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.1.0 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.0.5 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.0.4 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.0.3 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.0.2 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.0.1 lib/leap_salesforce/generator/templates/factory.rb.erb
leap_salesforce-1.0.0 lib/leap_salesforce/generator/templates/factory.rb.erb