I\'m writing tests on Rspec for my models in Ruby on Rails application. And I receive this error while starting \'rspec spec\'
command:
/spec/models/client_spec
If other answers under this question don't work, try:
Other wise,
config/environment/test.rb
file,
see if there is config.eager_load = false
, set it to true
.You should check in the written order since you don't want to solve the issue with the typo laying there.