Sha256: b370e147fd3fdaf2862d7c3b5cead096b7a8c40308a741006ec91807d43e700e

Contents?: true

Size: 488 Bytes

Versions: 13

Compression:

Stored size: 488 Bytes

Contents

FactoryGirl.define do
  factory :event_rule do
    event_category { %w(cloudfuji_event_received lead_attribute_changed).sample }

    cloudfuji_event {
      %w(customer email app user).sample << "_" <<
      %w(partied danced backflipped moonwalked).sample
    }
    lead_attribute {  %w(username score first_name last_name).sample }
    
    action { %w(add_tag remove_tag change_lead_score send_notification).sample }
    tag { 'EventTag' }
    change_score_by { rand(100) }
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ffcrm_cloudfuji-0.4.1 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.3.1 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.3.0 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.2.11 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.2.10 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.2.9 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.2.8 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.2.7 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.2.6 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.2.5 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.2.4 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.2.3 spec/factories/lead_scoring_factories.rb
ffcrm_cloudfuji-0.2.2 spec/factories/lead_scoring_factories.rb