EPP doc in md

This commit is contained in:
Martin Lensment 2014-12-11 18:01:35 +02:00
parent 89c57d22b0
commit 2d3b17493d
3 changed files with 5750 additions and 18 deletions

View file

@ -5,32 +5,30 @@ class EppDoc
@output = output
end
def example_started(notification)
@output.puts '-' * 100
@output.puts notification.example.full_description
@output.puts '-' * 100
def start(example_count)
@output.puts '# EPP REQUEST - RESPONSE DOCUMENTATION'
@output.puts "GENERATED AT: #{Time.now} "
@output.puts "EXAMPLE COUNT: #{example_count.count} "
@output.puts '---'
end
def start(example_count)
@output.puts '-' * 100
@output.puts 'EPP REQUEST - RESPONSE DOCUMENTATION'
@output.puts "GENERATED AT: #{Time.now}"
@output.puts "EXAMPLE COUNT: #{example_count.count}"
def example_started(notification)
@output.puts "## #{notification.example.full_description}\n\n"
end
def example_passed(_example)
dash = '-' * 48
@output.puts "#{dash}PASS#{dash}\n\n"
# dash = '-' * 48
# @output.puts "#{dash}PASS#{dash}\n\n"
end
def example_failed(_example)
dash = '-' * 48
@output.puts "#{dash}FAIL#{dash}\n\n"
# dash = '-' * 48
# @output.puts "#{dash}FAIL#{dash}\n\n"
end
def example_pending(_example)
dash_1 = '-' * 47
dash_2 = '-' * 46
@output.puts "#{dash_1}PENDING#{dash_2}\n\n"
# dash_1 = '-' * 47
# dash_2 = '-' * 46
# @output.puts "#{dash_1}PENDING#{dash_2}\n\n"
end
end