Class: RspecSpinner::Bar
- Inherits:
-
RspecSpinnerBase
- Object
- RSpec::Core::Formatters::BaseTextFormatter
- RspecSpinnerBase
- RspecSpinner::Bar
- Defined in:
- lib/rspec_spinner/bar.rb
Constant Summary
Constants inherited from RspecSpinnerBase
RspecSpinnerBase::ERROR_STATE_COLORS, RspecSpinnerBase::THRESHOLD
Instance Attribute Summary
Attributes inherited from RspecSpinnerBase
Instance Method Summary collapse
Methods inherited from RspecSpinnerBase
#dump_failure, #erase_current_line, #example_failed, #example_passed, #example_pending, #example_started, fmt_backtrace, #immediately_dump_failure, #immediately_dump_pending, #increment, #initialize, #mark_error_state_failed, #mark_error_state_pending, #method_missing, #print_warning_if_slow, #start_dump, #with_color
Constructor Details
This class inherits a constructor from RspecSpinner::RspecSpinnerBase
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RspecSpinner::RspecSpinnerBase
Instance Method Details
#start(example_count) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/rspec_spinner/bar.rb', line 5 def start(example_count) @current = 0 @total = example_count @error_state = :all_passing @pbar = RTUI::Progress.new("#{example_count} examples", example_count, {:out => output}) end |