When i created engine and added acts_as_commentable as a add_dependency and tried to run tests i get this error
4.0.2/lib/active_record/dynamic_matchers.rb:22:in method_missing': undefined local variable or methodacts_as_commentable' for Post(no database connection):Class (NameError)
Here is also my class definition
class Post < ActiveRecord::Base
belongs_to :user
belongs_to :group
acts_as_commentable
validates :body,:user,:group, presence: true
end
When i created engine and added acts_as_commentable as a add_dependency and tried to run tests i get this error
4.0.2/lib/active_record/dynamic_matchers.rb:22:in
method_missing': undefined local variable or method
acts_as_commentable' for Post(no database connection):Class (NameError)Here is also my class definition
class Post < ActiveRecord::Base belongs_to :user belongs_to :group acts_as_commentable validates :body,:user,:group, presence: true end