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
You might also like to add --require rails_helper in your .rspec file so that it looks like this.
--require rails_helper
.rspec
--color --require spec_helper --require rails_helper
You won't need to require rails_helper in all your specs, after this.