ruby-qa/lib/rubyqa/templates/test.rb

13 lines
456 B
Ruby
Raw Normal View History

2024-12-11 11:25:13 -05:00
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