Class: ExampleGroupTimer::RootTimedGroup
Instance Attribute Summary
Attributes inherited from TimedGroup
#current_example, #examples, #subgroups
Attributes inherited from TimedItem
#item, #parent
Instance Method Summary
collapse
Methods inherited from TimedGroup
#add_example, #add_group, #finish_current_example
Methods inherited from TimedItem
#duration, #finish, #start
Constructor Details
Returns a new instance of RootTimedGroup.
3
4
5
|
# File 'lib/example_group_timer/root_timed_group.rb', line 3
def initialize
super(nil)
end
|
Instance Method Details
#description ⇒ Object
27
28
29
|
# File 'lib/example_group_timer/root_timed_group.rb', line 27
def description
'Spec suite'
end
|
#indent ⇒ Object
7
8
9
|
# File 'lib/example_group_timer/root_timed_group.rb', line 7
def indent
0
end
|
#output ⇒ Object
11
12
13
|
# File 'lib/example_group_timer/root_timed_group.rb', line 11
def output
@output ||= StringIO.new
end
|
#percentage ⇒ Object
23
24
25
|
# File 'lib/example_group_timer/root_timed_group.rb', line 23
def percentage
100
end
|
#puts(*args) ⇒ Object
31
32
33
|
# File 'lib/example_group_timer/root_timed_group.rb', line 31
def puts(*args)
output.puts(*args)
end
|
#report ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/example_group_timer/root_timed_group.rb', line 15
def report
puts '<div id="lists">'
puts '<ol>'
super
puts '</ol>'
puts '</div>'
end
|