Error: `’: uninitialized constant ActiveRecord (NameError)

This error is due to RSpec expecting to run with the rails environment loaded.

Error

`': uninitialized constant ActiveRecord (NameError)

Require the rspec helper in your spec file.

require "rspec_helper"

Leave a Reply

Your email address will not be published. Required fields are marked *