Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit a99d6d5

Browse files
committed
Rename @example_started to @example_running.
1 parent e2171dc commit a99d6d5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/rspec/core/formatters/documentation_formatter.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ def initialize(output)
1313
super
1414
@group_level = 0
1515

16-
@example_started = false
16+
@example_running = false
1717
@messages = []
1818
end
1919

2020
def example_started(_notification)
21-
@example_started = true
21+
@example_running = true
2222
end
2323

2424
def example_group_started(notification)
@@ -36,26 +36,26 @@ def example_passed(passed)
3636
output.puts passed_output(passed.example)
3737

3838
flush_messages
39-
@example_started = false
39+
@example_running = false
4040
end
4141

4242
def example_pending(pending)
4343
output.puts pending_output(pending.example,
4444
pending.example.execution_result.pending_message)
4545

4646
flush_messages
47-
@example_started = false
47+
@example_running = false
4848
end
4949

5050
def example_failed(failure)
5151
output.puts failure_output(failure.example)
5252

5353
flush_messages
54-
@example_started = false
54+
@example_running = false
5555
end
5656

5757
def message(notification)
58-
if @example_started
58+
if @example_running
5959
@messages << notification.message
6060
else
6161
output.puts "#{current_indentation}#{notification.message}"

0 commit comments

Comments
 (0)