rails/rails-controller-testing

Solving uninitialized constant AbstractController::Rendering

gsusmonzon opened this issue · 1 comments

Hello,

In case it may help to others.
When I tried using this gem in a Rails 5 beta3 project with minitest I got the following fatal error

uninitialized constant AbstractController::Rendering (NameError)

I changed Gemfile adding a require false

group :test do
  gem 'rails-controller-testing', :require => false
end

and required the gem in the test_helper.rb after others

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'minitest/unit'
require 'minitest/autorun'
require 'rails/test_help'
require 'rails-controller-testing'
...

Thanks

This should be fixed now.