New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solving uninitialized constant AbstractController::Rendering #22

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

Comments

Projects
None yet
2 participants
@gsusmonzon

gsusmonzon commented Mar 23, 2016

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

This comment has been minimized.

Show comment
Hide comment
@rafaelfranca

rafaelfranca Aug 11, 2016

Member

This should be fixed now.

Member

rafaelfranca commented Aug 11, 2016

This should be fixed now.

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