Class: STester

Inherits:
Object show all
Defined in:
lib/s_tester.rb

Class Method Summary collapse

Class Method Details

.context(text) ⇒ Object



12
13
14
# File 'lib/s_tester.rb', line 12

def context text
  p text
end

.description(text) ⇒ Object



8
9
10
# File 'lib/s_tester.rb', line 8

def description text
  p text
end

.it(text) ⇒ Object



16
17
18
19
20
21
22
23
# 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