When I try to run my spec, I get an uninitialized persistent error. My specification is as follows:
describe Facility do
it { should have_many(:units) }
it { should have_many(:facilities_users) }
it { should have_many(:administrators) }
it { should have_many(:facility_employees) }
end
Mistake:
facility_spec.rb:1:in `<top (required)>': uninitialized constant Facility (NameError)
Of course, I have a Facility model, so I'm not sure why this will happen.
source
share