Class: RailsEdgeTest::Printers::Tree
- Inherits:
-
Object
- Object
- RailsEdgeTest::Printers::Tree
- Defined in:
- lib/rails_edge_test/printers/tree.rb
Instance Method Summary collapse
- #begin_action(action) ⇒ Object
- #begin_controller(controller) ⇒ Object
- #begin_edge(edge) ⇒ Object
- #begin_suite ⇒ Object
- #end_action ⇒ Object
- #end_controller ⇒ Object
- #end_edge ⇒ Object
- #end_suite ⇒ Object
-
#initialize ⇒ Tree
constructor
A new instance of Tree.
Constructor Details
#initialize ⇒ Tree
Returns a new instance of Tree.
6 7 8 |
# File 'lib/rails_edge_test/printers/tree.rb', line 6 def initialize @count = 0 end |
Instance Method Details
#begin_action(action) ⇒ Object
29 30 31 |
# File 'lib/rails_edge_test/printers/tree.rb', line 29 def begin_action(action) puts " #{action.name}" end |
#begin_controller(controller) ⇒ Object
21 22 23 |
# File 'lib/rails_edge_test/printers/tree.rb', line 21 def begin_controller(controller) puts controller.controller_class.name end |
#begin_edge(edge) ⇒ Object
35 36 37 |
# File 'lib/rails_edge_test/printers/tree.rb', line 35 def begin_edge(edge) print " #{edge.description}" end |
#begin_suite ⇒ Object
10 11 12 13 14 15 |
# File 'lib/rails_edge_test/printers/tree.rb', line 10 def begin_suite puts '' puts 'Generating Edges...' puts '-------------------' puts '' end |
#end_action ⇒ Object
33 |
# File 'lib/rails_edge_test/printers/tree.rb', line 33 def end_action; end |
#end_controller ⇒ Object
25 26 27 |
# File 'lib/rails_edge_test/printers/tree.rb', line 25 def end_controller puts '' end |
#end_edge ⇒ Object
39 40 41 42 |
# File 'lib/rails_edge_test/printers/tree.rb', line 39 def end_edge puts ' ... done' @count += 1 end |
#end_suite ⇒ Object
17 18 19 |
# File 'lib/rails_edge_test/printers/tree.rb', line 17 def end_suite puts "\n#{@count} edge specs executed." end |