rspec_numbering_formatter 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rspec_numbering_formatter.rb +3 -1
- metadata +1 -1
@@ -3,10 +3,12 @@ require 'rspec/core/formatters/base_text_formatter'
|
|
3
3
|
# useful reference: http://ascii-table.com/ansi-escape-sequences.php
|
4
4
|
|
5
5
|
class RspecNumberingFormatter < RSpec::Core::Formatters::BaseTextFormatter
|
6
|
-
VERSION = "0.0.
|
6
|
+
VERSION = "0.0.2"
|
7
7
|
|
8
8
|
attr_accessor :run_count
|
9
9
|
|
10
|
+
def failure_color(*args); red(*args); end unless method_defined? :failure_color
|
11
|
+
|
10
12
|
def start(example_count)
|
11
13
|
@pwd = `pwd`
|
12
14
|
@start_time = Time.now
|