mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 09:27:19 +02:00
18 lines
476 B
Ruby
18 lines
476 B
Ruby
class EppDoc
|
|
RSpec::Core::Formatters.register self, :start, :example_started
|
|
|
|
def initialize(output)
|
|
@output = output
|
|
end
|
|
|
|
def start(example_count)
|
|
@output.puts '# EPP REQUEST - RESPONSE EXAMPLES'
|
|
@output.puts "GENERATED AT: #{Time.zone.now} "
|
|
@output.puts "EXAMPLE COUNT: #{example_count.count} "
|
|
@output.puts "\n---\n\n"
|
|
end
|
|
|
|
def example_started(notification)
|
|
@output.puts "### #{notification.example.full_description} \n\n"
|
|
end
|
|
end
|