mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
EPP doc in md
This commit is contained in:
parent
89c57d22b0
commit
2d3b17493d
3 changed files with 5750 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue