Sha256: 46e756b553c2692a98204c44f5846522b8669daf6c63693c18f0c7fc251469a4

Contents?: true

Size: 673 Bytes

Versions: 5

Compression:

Stored size: 673 Bytes

Contents

def init
  super
  sections.push :namespace
  @namespace = object
end

def namespace
  erb(:namespace)
end

def all_tags_by_letter
  hash = {}
  objects = tags
  objects = run_verifier(objects)
  objects.each {|o| (hash[o.value.to_s[1,1].upcase] ||= []) << o }
  hash
end

def tags
  @tags ||= Registry.all(:tag)
end

def features
  @features ||= Registry.all(:feature).sort {|x,y| x.value.to_s <=> y.value.to_s }
end

def feature_tags_with_all_scenario_tags(feature)
  feature.tags.collect {|t| t.value} + feature.scenarios.collect {|s| s.tags.collect {|t| t.value} }.flatten.uniq
end


def tagify(tag)
  %{<span class="tag" href="#{url_for tag}">#{tag.value}</span>} 
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cucumber-in-the-yard-1.7.7 lib/templates/default/featuretags/html/setup.rb
cucumber-in-the-yard-1.7.6 lib/templates/default/featuretags/html/setup.rb
cucumber-in-the-yard-1.7.5 lib/templates/default/featuretags/html/setup.rb
cucumber-in-the-yard-1.7.4 lib/templates/default/featuretags/html/setup.rb
cucumber-in-the-yard-1.7.3 lib/templates/default/featuretags/html/setup.rb