Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoadError: cannot load such file -- rspec/expectations #539

Closed
sunloverz opened this issue Mar 24, 2023 · 3 comments
Closed

LoadError: cannot load such file -- rspec/expectations #539

sunloverz opened this issue Mar 24, 2023 · 3 comments

Comments

@sunloverz
Copy link

I use the latest paranoia 2.6.1 version, when I deploy using capistrano it raises the following error:

  01 ~/.rvm/bin/rvm ruby-2.7.6 do bundle exec rake db:migrate
  01 rake aborted!
  01 LoadError: cannot load such file -- rspec/expectations
  01 /srv/www/project/shared/bundle/ruby/2.7.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
  01 /srv/www/project/shared/bundle/ruby/2.7.0/gems/paranoia-2.6.1/lib/paranoia/rspec.rb:2:in `<main>'
  01 /srv/www/project/shared/bundle/ruby/2.7.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
  01 /srv/www/project/shared/bundle/ruby/2.7.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
  01 /srv/www/project/shared/bundle/ruby/2.7.0/gems/paranoia-2.6.1/lib/paranoia.rb:317:in `<main>'
  01 /srv/www/project/shared/bundle/ruby/2.7.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
  01 /srv/www/project/shared/bundle/ruby/2.7.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
@sunloverz
Copy link
Author

@swelther @swelther Could you please have a look?

@mathieujobin
Copy link
Collaborator

why would rspec/anything be loaded on db:migrate?

seems like something is wrong with your setup...

could also be a gem in group :test and bootsnap cannot find it.

I don't know what else it could be...

@mathieujobin
Copy link
Collaborator

looks unrelated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants