You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I were to run a spec, this is what I would get:
my-dumb-project
❯ bundle exec rspec backend/spec/feature_spec.rb:42
Could not locate Gemfile or .bundle/ directory
But if I cd into my backend directory in that same terminal, this is what I would get:
my-dumb-project
❯ cd backend
my-dumb-project/backend
❯ bundle exec rspec backend/spec/jobs/feature_spec.rb:42
An error occurred while loading ./backend/spec/feature_spec.rb.
Failure/Error: __send__(method, file)
LoadError:
cannot load such file -- /Users/foobar/projects/my-dumb-project/backend/backend/spec/feature_spec.rb
Interesting how it slaps on another backend to the path when I change it. The solution (albeit, not the greatest) is to open another VS Code on that backend directory as its root.
I found a solution. You need to open your backend folder as main in your Workspace - File -> Open folder. After that click File -> Add folder to Workspace and choose your my-dumb-project folder. Now you can run RSpec from opened file by pressing Ctrl+CMD+T or by right click on spec file from side panel.
As above, so when it tries to run the spec file it can't find it.
The text was updated successfully, but these errors were encountered: