Skip to content

Commit

Permalink
formatters take load time on start
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Mar 23, 2013
1 parent b45f881 commit 1bd432b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lib/rspec/core/formatters/base_formatter.rb
Expand Up @@ -39,9 +39,10 @@ def initialize(output)
# is {#example_group_started}.
#
# @param example_count
def start(example_count)
def start(example_count,load_time)
start_sync_output
@example_count = example_count
@load_time = load_time
end

# @api public
Expand Down
4 changes: 2 additions & 2 deletions lib/rspec/core/formatters/html_formatter.rb
Expand Up @@ -33,8 +33,8 @@ def example_number
@example_number
end

def start(example_count)
super(example_count)
def start(example_count,load_time)
super(example_count,load_time)
@printer.print_html_start
@printer.flush
end
Expand Down
4 changes: 2 additions & 2 deletions spec/rspec/core/formatters/progress_formatter_spec.rb
Expand Up @@ -6,7 +6,7 @@
before do
@output = StringIO.new
@formatter = RSpec::Core::Formatters::ProgressFormatter.new(@output)
@formatter.start(2)
@formatter.start(2,0)
@formatter.stub(:color_enabled?).and_return(false)
end

Expand All @@ -23,7 +23,7 @@
end

it "pushes nothing on start" do
@formatter.start(4)
@formatter.start(4,0)
expect(@output.string).to eq("")
end

Expand Down

0 comments on commit 1bd432b

Please sign in to comment.