In my project I keep the specs in the same place as the code, despite my rspec being configured correctly running with guard always produces the error:
An error occurred while loading ./spec.
Failure/Error: __send__(method, file)
LoadError:
cannot load such file -- /home/faissaloo/autodidact_space/spec
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/configuration.rb:2053:in `load'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/configuration.rb:2053:in `load_file_handling_errors'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/configuration.rb:1560:in `block in load_spec_files'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/configuration.rb:1558:in `each'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/configuration.rb:1558:in `load_spec_files'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:98:in `setup'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:86:in `run'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:71:in `run'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:45:in `invoke'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.8.2/exe/rspec:4:in `<top (required)>'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/bin/rspec:23:in `load'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/bin/rspec:23:in `<top (required)>'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/2.6.0/bundler/cli/exec.rb:74:in `load'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/2.6.0/bundler/cli/exec.rb:74:in `kernel_load'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/2.6.0/bundler/cli/exec.rb:28:in `run'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/2.6.0/bundler/cli.rb:463:in `exec'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/2.6.0/bundler/cli.rb:27:in `dispatch'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/2.6.0/bundler/cli.rb:18:in `start'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:30:in `block in <top (required)>'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/2.6.0/bundler/friendly_errors.rb:124:in `with_friendly_errors'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:22:in `<top (required)>'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/bin/bundle:23:in `load'
# /home/faissaloo/.asdf/installs/ruby/2.6.1/bin/bundle:23:in `<main>'
#
# Showing full backtrace because every line was filtered out.
# See docs for RSpec::Configuration#backtrace_exclusion_patterns and
# RSpec::Configuration#backtrace_inclusion_patterns for more information.
In my project I keep the specs in the same place as the code, despite my rspec being configured correctly running with guard always produces the error: