Skip to content

Commit

Permalink
Merge commit 'cc444401c3c5934c44c063cef661dbbe917cd947'
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jul 15, 2015
2 parents 2894472 + cc44440 commit eb82919
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions spec/mspec/lib/mspec/utils/script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,7 @@ def custom_options(options)
# Registers all filters and actions.
def register
if config[:formatter].nil?
# For some unidentified reason, running specs under MRI 2.0
# with the SpinnerFormatter adds a lot of errors.
buggy_spinner_formatter = RUBY_NAME == "ruby" && RUBY_VERSION < "2.1"

if STDOUT.tty? and !buggy_spinner_formatter
config[:formatter] = SpinnerFormatter
else
config[:formatter] = @files.size < 50 ? DottedFormatter : FileFormatter
end
config[:formatter] = STDOUT.tty? ? SpinnerFormatter : @files.size < 50 ? DottedFormatter : FileFormatter
end

if config[:formatter]
Expand Down

0 comments on commit eb82919

Please sign in to comment.