{"action":"created","issue":{"url":"https://api.github.com/repos/kern/minitest-reporters/issues/189","labels_url":"https://api.github.com/repos/kern/minitest-reporters/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/kern/minitest-reporters/issues/189/comments","events_url":"https://api.github.com/repos/kern/minitest-reporters/issues/189/events","html_url":"https://github.com/kern/minitest-reporters/issues/189","id":114417323,"number":189,"title":"undefined method `io' for #<Minitest::Reporters::DelegateReporter:0x007fa26bb42368> (NoMethodError)","user":{"login":"nickgnd","id":3228071,"avatar_url":"https://avatars.githubusercontent.com/u/3228071?v=3","gravatar_id":"","url":"https://api.github.com/users/nickgnd","html_url":"https://github.com/nickgnd","followers_url":"https://api.github.com/users/nickgnd/followers","following_url":"https://api.github.com/users/nickgnd/following{/other_user}","gists_url":"https://api.github.com/users/nickgnd/gists{/gist_id}","starred_url":"https://api.github.com/users/nickgnd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickgnd/subscriptions","organizations_url":"https://api.github.com/users/nickgnd/orgs","repos_url":"https://api.github.com/users/nickgnd/repos","events_url":"https://api.github.com/users/nickgnd/events{/privacy}","received_events_url":"https://api.github.com/users/nickgnd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-31T15:38:47Z","updated_at":"2015-11-04T16:12:13Z","closed_at":"2015-11-04T16:12:13Z","body":"Hi. \r\nIn a Rails 5 project with Ruby 2.2.3 I have this error if I try to **benchmark** an alghoritm through Minitest. \r\n ```bash\r\n# Running:\r\n\r\n/Users/Nico/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.2/lib/minitest/benchmark.rb:22:in `run': undefined method `io' for #<Minitest::Reporters::DelegateReporter:0x007f925d08a858> (NoMethodError)\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.2/lib/minitest.rb:155:in `block in __run'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.2/lib/minitest.rb:155:in `map'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.2/lib/minitest.rb:155:in `__run'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.2/lib/minitest.rb:129:in `run'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/railties/lib/rails/commands/test.rb:9:in `<top (required)>'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:302:in `require'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:302:in `block in require'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:268:in `load_dependency'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:302:in `require'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/railties/lib/rails/commands/commands_tasks.rb:128:in `require_command!'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/railties/lib/rails/commands/commands_tasks.rb:86:in `test'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/railties/lib/rails/commands/commands_tasks.rb:40:in `run_command!'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/railties/lib/rails/commands.rb:18:in `<top (required)>'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:302:in `require'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:302:in `block in require'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:268:in `load_dependency'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:302:in `require'\r\n\tfrom /Users/Nico/Ruby_on_Rails/minitest_reporters/bin/rails:8:in `<top (required)>'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:296:in `load'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:296:in `block in load'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:268:in `load_dependency'\r\n\tfrom /Users/Nico/.rvm/gems/ruby-2.2.3/bundler/gems/rails-53ac41e48b7c/activesupport/lib/active_support/dependencies.rb:296:in `load'\r\n\tfrom /Users/Nico/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom /Users/Nico/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom -e:1:in `<main>'\r\n ```\r\n\r\nThe problem is due to ```minitest-reporters``` gem, infact, if I remove it from my Gemfile, the benchmark works fine and doesn't raise errors. (credits: https://github.com/seattlerb/minitest/issues/594)\r\nFurthermore, it doesn't matter if I require ```minitest-reporters``` in my  ```test_helper.rb ``` file or not, the error still remains independently.\r\n\r\nI've push a clean repo to reproduce the error: https://github.com/nickgnd/minitest-reporters-error\r\n\r\n**Benchmark:**\r\n ```ruby\r\nrequire 'test_helper'\r\nrequire \"minitest/benchmark\"\r\n\r\nclass FibonacciBench < Minitest::Benchmark\r\n\r\n  def fib n\r\n    a, b = 0, 1\r\n    n.times do\r\n      a, b = b, a + b\r\n    end\r\n    a\r\n  end\r\n\r\n  def bench_fib\r\n    assert_performance_linear 0.99 do |n|\r\n      n.times do\r\n        fib(1000)\r\n      end\r\n    end\r\n  end\r\n\r\nend\r\n ```\r\n\r\n**test_helper** file\r\n```ruby\r\nENV['RAILS_ENV'] ||= 'test'\r\nrequire File.expand_path('../../config/environment', __FILE__)\r\nrequire 'rails/test_help'\r\n\r\nrequire \"minitest/reporters\"\r\nMinitest::Reporters.use!\r\n\r\nclass ActiveSupport::TestCase\r\n  # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.\r\n  fixtures :all\r\n\r\n  # Add more helper methods to be used by all tests here...\r\nend\r\n\r\n```\r\n\r\n**Gemfile**\r\n```ruby\r\nsource 'https://rubygems.org'\r\n\r\nruby '2.2.3'\r\n\r\ngem 'rails', github: \"rails/rails\"\r\ngem 'sprockets-rails', github: \"rails/sprockets-rails\"\r\ngem 'sprockets', github: \"rails/sprockets\"\r\ngem 'sass-rails', github: \"rails/sass-rails\"\r\ngem 'arel', github: \"rails/arel\"\r\ngem 'rack', github: \"rack/rack\"\r\n\r\n# Use sqlite3 as the database for Active Record\r\ngem 'sqlite3'\r\n# Use ActiveModel has_secure_password\r\n# gem 'bcrypt', '~> 3.1.7'\r\n\r\n# Use Unicorn as the app server\r\n# gem 'unicorn'\r\n\r\n# Use Capistrano for deployment\r\n# gem 'capistrano-rails', group: :development\r\n\r\n# Use ActiveModelSerializers to serialize JSON responses\r\ngem 'active_model_serializers', '~> 0.10.0.rc2'\r\n\r\n# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible\r\n# gem 'rack-cors'\r\n\r\ngroup :development, :test do\r\n  # Call 'byebug' anywhere in the code to stop execution and get a debugger console\r\n  gem 'byebug'\r\nend\r\n\r\ngroup :development do\r\n  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring\r\n  gem 'spring'\r\nend\r\n\r\n# The problem\r\ngroup :test do\r\n  gem 'minitest-reporters'\r\nend\r\n\r\n# Windows does not include zoneinfo files, so bundle the tzinfo-data gem\r\ngem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]\r\n```\r\n\r\n**Rails version**: ``` Rails 5.0.0.alpha ```\r\n\r\n**RVM info**: \r\n```\r\nruby-2.2.3:\r\n\r\n  system:\r\n    uname:       \"Darwin MacBook-Pro-di-Nicolo.local 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64\"\r\n    system:      \"osx/10.10/x86_64\"\r\n    bash:        \"/bin/bash => GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)\"\r\n    zsh:         \"/bin/zsh => zsh 5.0.5 (x86_64-apple-darwin14.0)\"\r\n\r\n  rvm:\r\n    version:      \"rvm 1.26.9 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]\"\r\n    updated:      \"9 months 14 days 21 hours 43 minutes 56 seconds ago\"\r\n    path:         \"/Users/Nico/.rvm\"\r\n\r\n  ruby:\r\n    interpreter:  \"ruby\"\r\n    version:      \"2.2.3p173\"\r\n    date:         \"2015-08-18\"\r\n    platform:     \"x86_64-darwin14\"\r\n    patchlevel:   \"2015-08-18 revision 51636\"\r\n    full_version: \"ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]\"\r\n\r\n  homes:\r\n    gem:          \"/Users/Nico/.rvm/gems/ruby-2.2.3\"\r\n    ruby:         \"/Users/Nico/.rvm/rubies/ruby-2.2.3\"\r\n\r\n  binaries:\r\n    ruby:         \"/Users/Nico/.rvm/rubies/ruby-2.2.3/bin/ruby\"\r\n    irb:          \"/Users/Nico/.rvm/rubies/ruby-2.2.3/bin/irb\"\r\n    gem:          \"/Users/Nico/.rvm/rubies/ruby-2.2.3/bin/gem\"\r\n    rake:         \"/Users/Nico/.rvm/rubies/ruby-2.2.3/bin/rake\"\r\n\r\n  environment:\r\n    PATH:         \"/Users/Nico/.rvm/gems/ruby-2.2.3/bin:/Users/Nico/.rvm/gems/ruby-2.2.3@global/bin:/Users/Nico/.rvm/rubies/ruby-2.2.3/bin:/Users/Nico/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/webdriver:/opt/X11/bin:/usr/local/mysql/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/webdriver:/opt/X11/bin:/usr/local/mysql/bin\"\r\n    GEM_HOME:     \"/Users/Nico/.rvm/gems/ruby-2.2.3\"\r\n    GEM_PATH:     \"/Users/Nico/.rvm/gems/ruby-2.2.3:/Users/Nico/.rvm/gems/ruby-2.2.3@global\"\r\n    MY_RUBY_HOME: \"/Users/Nico/.rvm/rubies/ruby-2.2.3\"\r\n    IRBRC:        \"/Users/Nico/.rvm/rubies/ruby-2.2.3/.irbrc\"\r\n    RUBYOPT:      \"\"\r\n    gemset:       \"\"\r\n```"},"comment":{"url":"https://api.github.com/repos/kern/minitest-reporters/issues/comments/153777598","html_url":"https://github.com/kern/minitest-reporters/issues/189#issuecomment-153777598","issue_url":"https://api.github.com/repos/kern/minitest-reporters/issues/189","id":153777598,"user":{"login":"os97673","id":450628,"avatar_url":"https://avatars.githubusercontent.com/u/450628?v=3","gravatar_id":"","url":"https://api.github.com/users/os97673","html_url":"https://github.com/os97673","followers_url":"https://api.github.com/users/os97673/followers","following_url":"https://api.github.com/users/os97673/following{/other_user}","gists_url":"https://api.github.com/users/os97673/gists{/gist_id}","starred_url":"https://api.github.com/users/os97673/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/os97673/subscriptions","organizations_url":"https://api.github.com/users/os97673/orgs","repos_url":"https://api.github.com/users/os97673/repos","events_url":"https://api.github.com/users/os97673/events{/privacy}","received_events_url":"https://api.github.com/users/os97673/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T16:12:13Z","updated_at":"2015-11-04T16:12:13Z","body":"resolved by #188.  Please try 1.1.5"}}