Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/progress_bar/components/progressable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def percentage_completed
# Doing this way so we can avoid converting each
# number to a float and then back to an integer.
#
self.progress * 100 / total
(self.progress * 100 / total).to_i
end

def percentage_completed_with_precision
Expand Down
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require 'simplecov'
SimpleCov.start
SimpleCov.start if RUBY_VERSION != "1.9.3" # simplecov + ruby 1.9.3 ends up with segmentation fault

require 'mathn'

require 'rspec'

Expand Down