Class: RailsEdgeTest::Printers::Boring

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_edge_test/printers/boring.rb

Instance Method Summary collapse

Constructor Details

#initializeBoring

Returns a new instance of Boring.



3
4
5
# File 'lib/rails_edge_test/printers/boring.rb', line 3

def initialize
  @count = 0
end

Instance Method Details

#begin_action(_action) ⇒ Object



23
24
25
# File 'lib/rails_edge_test/printers/boring.rb', line 23

def begin_action(_action)
  print "."
end

#begin_controller(_controller) ⇒ Object



15
16
17
# File 'lib/rails_edge_test/printers/boring.rb', line 15

def begin_controller(_controller)
  print "."
end

#begin_edge(_edge) ⇒ Object



31
32
33
# File 'lib/rails_edge_test/printers/boring.rb', line 31

def begin_edge(_edge)
  print "."
end

#begin_suiteObject



7
8
9
# File 'lib/rails_edge_test/printers/boring.rb', line 7

def begin_suite
  puts ""
end

#end_actionObject



27
28
29
# File 'lib/rails_edge_test/printers/boring.rb', line 27

def end_action

end

#end_controllerObject



19
20
21
# File 'lib/rails_edge_test/printers/boring.rb', line 19

def end_controller

end

#end_edgeObject



35
36
37
# File 'lib/rails_edge_test/printers/boring.rb', line 35

def end_edge
  @count += 1
end

#end_suiteObject



11
12
13
# File 'lib/rails_edge_test/printers/boring.rb', line 11

def end_suite
  puts "\n#{@count} edge specs executed."
end