Skip to content

Solving uninitialized constant AbstractController::Rendering #22

@gsusmonzon

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions