Class: GettingDumped

Inherits:
Object
  • Object
show all
Defined in:
lib/getting_dumped.rb

Instance Method Summary collapse

Constructor Details

#initialize(output) ⇒ GettingDumped

Returns a new instance of GettingDumped.



9
10
11
12
13
# File 'lib/getting_dumped.rb', line 9

def initialize(output)
  @output = output
  @run = create_run
  @example_db = DB[:examples]
end

Instance Method Details

#example_failed(example) ⇒ Object



23
24
25
# File 'lib/getting_dumped.rb', line 23

def example_failed(example)
  save_example(example)
end

#example_passed(example) ⇒ Object



19
20
21
# File 'lib/getting_dumped.rb', line 19

def example_passed(example)
  save_example(example)
end

#example_pending(example) ⇒ Object



15
16
17
# File 'lib/getting_dumped.rb', line 15

def example_pending(example)
  save_example(example)
end