Permalink
Browse files

Move the title 2 spaces to the right

With a solid block as cursor, it blocks the first character.
Some extra space fixes that.
  • Loading branch information...
1 parent 507f507 commit f2dcbbf814b597351d74eeb79c98d8192286e110 @iain committed Nov 16, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/fuubar.rb
  2. +2 −2 spec/fuubar_spec.rb
View
@@ -10,14 +10,14 @@ class Fuubar < RSpec::Core::Formatters::BaseTextFormatter
def start(example_count)
@example_count = example_count
@finished_count = 0
- @progress_bar = ProgressBar.new("#{example_count} examples", example_count, output)
+ @progress_bar = ProgressBar.new(" #{example_count} examples", example_count, output)
end
def increment
with_color do
@finished_count += 1
@progress_bar.inc
- @progress_bar.instance_variable_set("@title", "#{finished_count}/#{example_count}")
+ @progress_bar.instance_variable_set("@title", " #{finished_count}/#{example_count}")
end
end
View
@@ -17,7 +17,7 @@
end
it 'should set the title' do
- @progress_bar.instance_variable_get(:@title).should == '2 examples'
+ @progress_bar.instance_variable_get(:@title).should == ' 2 examples'
end
it 'should set the total amount of specs' do
@@ -106,7 +106,7 @@
@formatter.stub!(:finished_count).and_return(1)
@formatter.stub!(:example_count).and_return(2)
@formatter.increment
- @progress_bar.instance_variable_get(:@title).should == '1/2'
+ @progress_bar.instance_variable_get(:@title).should == ' 1/2'
end
it 'should increment the finished_count' do

0 comments on commit f2dcbbf

Please sign in to comment.