前提
herokuでrspecが実行できず、bundler: command not found: rspec Install missing gem executables with bundle install
とエラーが出てしまいます。構成は下記になります。
- heroku
- rails
- rspec
- RAILS_ENVはdevelopment
実現したいこと
herokuでheroku run bundle exec rspec spec/requests/application_spec.rbを打ってテスト実行をしたい
発生している問題・エラーメッセージ
bundler: command not found: rspec Install missing gem executables with `bundle install`
該当のソースコード
gemfile
1group :test do 2 # Adds support for Capybara system testing and selenium driver 3 gem 'capybara', '>= 2.15' 4 gem 'selenium-webdriver' 5 # Easy installation and use of web drivers to run system tests with browsers 6 gem 'webdrivers' 7 gem 'rspec-rails' 8 gem "factory_bot_rails" 9end
testでのみ入れています
試したこと
localだとdevelopment環境でテストできます

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/12/26 11:57
2022/12/26 13:08