Sha256: d076abfc3e3dbafef05376c7db30e47d7705f67f6b888004209c5e70cb9f0ca3
Contents?: true
Size: 827 Bytes
Versions: 4
Compression:
Stored size: 827 Bytes
Contents
require 'machinist/active_record' require 'sham' Sham.code { | index | "CODE_#{index}" } Sham.title { | index | "#{Faker::Lorem.words(2).join(' ')} #{index} #{Faker::Lorem.words(2).join(' ')}" } Sham.description { Faker::Lorem.sentence } # PLANS RePlan.blueprint do code title description plan_status = RePlan::PLAN_STATUS_DRAFT plan_version = (0 ... 10).to_a.rand end RePlan.blueprint(:draft) do plan_status = RePlan::PLAN_STATUS_DRAFT end RePlan.blueprint(:changed) do plan_status = RePlan::PLAN_STATUS_CHANGED end RePlan.blueprint(:published) do plan_status = RePlan::PLAN_STATUS_CHANGED end # WORKFLOWS ReWorkflow.blueprint do code title description end # RULES ReRule.blueprint do rule_class_name { 'RulesEngine::Rule::Unknown'} position = 0 title summary { Sham.description } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rules_engine-0.3.3 | spec/support/blueprints.rb |
rules_engine-0.3.2 | spec/support/blueprints.rb |
rules_engine-0.3.1 | spec/support/blueprints.rb |
rules_engine-0.3.0 | spec/support/blueprints.rb |