Solving uninitialized constant AbstractController::Rendering #22

Closed
gsusmonzon opened this Issue Mar 23, 2016 · 1 comment

Projects

None yet

2 participants

@gsusmonzon

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

@rafaelfranca
Member

This should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment