Sha256: 15cdf2ea69673ec571e9d374051dd05b109b013db4bbab0f7f121bafefa5aab5

Contents?: true

Size: 636 Bytes

Versions: 2

Compression:

Stored size: 636 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rules_engine-0.1.4 rails_generators/templates/spec/support/rules_engine_blueprints.rb
rules_engine-0.1.3 rails_generators/templates/spec/support/rules_engine_blueprints.rb