class STester

Public Class Methods

context(text) click to toggle source
# File lib/s_tester.rb, line 12
def context text
  p text
end
description(text) click to toggle source
# File lib/s_tester.rb, line 8
def description text
  p text
end
it(text) { || ... } click to toggle source
# File lib/s_tester.rb, line 16
def it text
  begin
    yield
    Painter.correct text
  rescue STesterException => e
    Painter.error(text + e.message)
  end
end