Skip to content

RSpec with Rails 4.1.0.beta, warning: you should require 'minitest/autorun' instead #758

@gwshaw

Description

@gwshaw

In trying to run RSpec 2.14.0.rc1 on Rails 4.1.0.beta, I immediately get a warning:

you should require 'minitest/autorun' instead

that comes up in the backtrace assigned to the line

require 'rspec/rails'

in spec_helper.rb If I add this before it

require 'minitest/autorun'

the warning goes away. Alternatively, the problem goes away without changing the spec_helper.rb file if I add

gem 'minitest'

to the gemfile

It will do this with a single spec file that only contains

require 'spec_helper'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions