class Petitest::Texts::TestsResultMarginTopText

Attributes

tests[R]

@return [Array<Petitest::Test>]

Public Class Methods

new(tests:) click to toggle source

@param tests [Array<Petitest::Test>]

# File lib/petitest/texts/tests_result_margin_top_text.rb, line 10
def initialize(tests:)
  @tests = tests
end

Public Instance Methods

to_s() click to toggle source

@note Override

# File lib/petitest/texts/tests_result_margin_top_text.rb, line 15
def to_s
  if tests.empty?
    "\n"
  else
    "\n\n"
  end
end