Read more

Removing MiniTest warnings from Rails 4 projects

Dominik Schöler
June 02, 2014Software engineer at makandra GmbH

Warnings like those below may originate from rspec Show archive.org snapshot or shoulda-matchers or other gems that have not updated yet to the new MiniTest API.

One

Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
# (backtrace)
Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

Solution: Add gem 'minitest' to your Gemfile, before any rspec gem.

Another

MiniTest::Unit::TestCase is now Minitest::Test. From /Users/makandra/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/test/unit/testcase.rb:8:in `<module:Unit>'

In order to remove this message, you'd have to update the gem that makes the API call, I'm afraid.

Posted by Dominik Schöler to makandra dev (2014-06-02 12:27)