Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

formatters take load time on start

  • Loading branch information...
commit 1bd432bdb6e01b3f89328197a284b953594beff6 1 parent b45f881
@JonRowe authored
View
3  lib/rspec/core/formatters/base_formatter.rb
@@ -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
View
4 lib/rspec/core/formatters/html_formatter.rb
@@ -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
View
4 spec/rspec/core/formatters/progress_formatter_spec.rb
@@ -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
@@ -23,7 +23,7 @@
end
it "pushes nothing on start" do
- @formatter.start(4)
+ @formatter.start(4,0)
expect(@output.string).to eq("")
end
Please sign in to comment.
Something went wrong with that request. Please try again.