Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Setting the example_count is handled in the super class and has been …

…since v2.0 so we can just rely on calling `super`
  • Loading branch information...
commit 535b54678d927bcc96d45a11f8ed7c2b85e866ce 1 parent f185fe8
@jfelchner jfelchner authored
Showing with 1 addition and 7 deletions.
  1. +1 −3 lib/fuubar.rb
  2. +0 −4 spec/fuubar_spec.rb
View
4 lib/fuubar.rb
@@ -4,10 +4,8 @@
class Fuubar < RSpec::Core::Formatters::BaseTextFormatter
- attr_reader :example_count
-
def start(example_count)
- @example_count = example_count
+ super
@progress_bar = ProgressBar.create(:format => ' %c/%C |%w>%i| %e ', :total => example_count, :output => output)
end
View
4 spec/fuubar_spec.rb
@@ -33,10 +33,6 @@
progress_bar.send(:output).should == formatter.output
end
- it 'should set the example_count' do
- formatter.instance_variable_get(:@example_count).should == 2
- end
-
it 'should set the bar mark to =' do
progress_bar.instance_variable_get(:@bar).progress_mark.should == '='
end
Please sign in to comment.
Something went wrong with that request. Please try again.