lib/fuubar.rb in fuubar-1.3.2 vs lib/fuubar.rb in fuubar-1.3.3
- old
+ new
@@ -10,20 +10,26 @@
attr_accessor :progress
def initialize(*args)
super
+ self.progress = ProgressBar.create(DEFAULT_PROGRESS_BAR_OPTIONS.
+ merge(:throttle_rate => continuous_integration? ? 1.0 : nil).
+ merge(:total => example_count,
+ :output => output,
+ :autostart => false))
+ end
+
+ def start(example_count)
progress_bar_options = DEFAULT_PROGRESS_BAR_OPTIONS.
merge(:throttle_rate => continuous_integration? ? 1.0 : nil).
merge(configuration.fuubar_progress_bar_options).
merge(:total => example_count,
:output => output,
:autostart => false)
self.progress = ProgressBar.create(progress_bar_options)
- end
- def start(example_count)
super
progress.total = example_count
with_current_color { progress.start }