Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

formatters take load time on start

  • Loading branch information...
commit 1bd432bdb6e01b3f89328197a284b953594beff6 1 parent b45f881
Jon Rowe authored March 24, 2013
3  lib/rspec/core/formatters/base_formatter.rb
@@ -39,9 +39,10 @@ def initialize(output)
39 39
         # is {#example_group_started}.
40 40
         #
41 41
         # @param example_count
42  
-        def start(example_count)
  42
+        def start(example_count,load_time)
43 43
           start_sync_output
44 44
           @example_count = example_count
  45
+          @load_time = load_time
45 46
         end
46 47
 
47 48
         # @api public
4  lib/rspec/core/formatters/html_formatter.rb
@@ -33,8 +33,8 @@ def example_number
33 33
           @example_number
34 34
         end
35 35
 
36  
-        def start(example_count)
37  
-          super(example_count)
  36
+        def start(example_count,load_time)
  37
+          super(example_count,load_time)
38 38
           @printer.print_html_start
39 39
           @printer.flush
40 40
         end
4  spec/rspec/core/formatters/progress_formatter_spec.rb
@@ -6,7 +6,7 @@
6 6
    before do
7 7
      @output = StringIO.new
8 8
      @formatter = RSpec::Core::Formatters::ProgressFormatter.new(@output)
9  
-     @formatter.start(2)
  9
+     @formatter.start(2,0)
10 10
      @formatter.stub(:color_enabled?).and_return(false)
11 11
    end
12 12
 
@@ -23,7 +23,7 @@
23 23
    end
24 24
 
25 25
    it "pushes nothing on start" do
26  
-     @formatter.start(4)
  26
+     @formatter.start(4,0)
27 27
      expect(@output.string).to eq("")
28 28
    end
29 29
 

0 notes on commit 1bd432b

Please sign in to comment.
Something went wrong with that request. Please try again.