Sha256: 75940b7dc30eed7485d4cfbca59d3df00605a5b719585ade5907f79bb7ffd683

Contents?: true

Size: 774 Bytes

Versions: 7

Compression:

Stored size: 774 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

# RULES
ReRule.blueprint do
  rule_class_name { 'RulesEngine::Rule::Unknown'}
  position = 0
  title
  summary { Sham.description }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rules_engine-0.2.0 rails_generators/templates/spec/support/rules_engine_blueprints.rb
rules_engine-0.1.10 rails_generators/templates/spec/support/rules_engine_blueprints.rb
rules_engine-0.1.9 rails_generators/templates/spec/support/rules_engine_blueprints.rb
rules_engine-0.1.8 rails_generators/templates/spec/support/rules_engine_blueprints.rb
rules_engine-0.1.7 rails_generators/templates/spec/support/rules_engine_blueprints.rb
rules_engine-0.1.6 rails_generators/templates/spec/support/rules_engine_blueprints.rb
rules_engine-0.1.5 rails_generators/templates/spec/support/rules_engine_blueprints.rb