Sha256: 80d12cc8591c7dc3141a6d13226d1b91b2838faf78a817e579befb5d217c12f3

Contents?: true

Size: 828 Bytes

Versions: 3

Compression:

Stored size: 828 Bytes

Contents

config do
  set(:models => Pathname(File.dirname(__FILE__)).join("models"))
  set(:templates => Pathname(File.dirname(__FILE__)).join("templates"))
end

view :table_of_contents do
  doc = Brief::Document.new(docs_path.join("index.md"), document_type: "outline")
  doc && doc.to_model
end

view :custom_aggregator do
  {aggregator:"custom"}
end

define "Release" do
  meta do
    name
  end
end

define "Outline" do
  meta do
    title
  end
end

define "User Story" do
  meta do
    title
    status :in => %w(draft published)
    epic_title
  end

  template :file => "user_story.md.erb"

  content do
    persona "p strong:first-child"
    behavior "p strong:second-child"
    goal "p strong:third-child"
  end

  actions do
    def defined_helper_method
      true
    end

    def custom_action
      true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
brief-1.9.14 spec/fixtures/example/brief.rb
brief-1.9.13 spec/fixtures/example/brief.rb
brief-1.9.12 spec/fixtures/example/brief.rb