13 lines
456 B
Ruby
13 lines
456 B
Ruby
module RubyQA::Template
|
|
BASE_TEST_TEMPLATE = ERB.new <<EOF, :trim_mode => '-'
|
|
==============================================
|
|
Test : "<%= @name %>"
|
|
<%- if not @description.empty? -%>
|
|
Description : "<%= @description %>"
|
|
<% end -%>
|
|
==============================================
|
|
<% @tests.each do |hostname,data| -%>
|
|
<%= hostname %> : <%= data[:status] %> <% if data[:context].has_key? :note %> (<%= data[:context][:note] %>) <% end %>
|
|
<% end -%>
|
|
EOF
|