I have a class that I'm trying to test that includes ActiveModel::Validations
module SomeModule
class SomeClass
include ActiveModel::Validations
end
end
I'm trying to test it without spec_helper
to keep it fast, but a simple require 'activemodel'
at the top of the spec doesn't work. I keep getting an uninitialized constant SomeModule::SomeClass::ActiveModel(NameError)
. for the spec file:
require 'activemodel'
describe SomeModule::SomeClass do
end
Any tips on solving this? Thanks in advance!