前提・実現したいこと
rspecにてテストを実行したいのですが下記エラーが発生します。
googleで調べても分からなかったので対処方法ご存じの方見えましたら
ご教授いただければと思います。
発生している問題・エラーメッセージ
エラーメッセージ 2019-06-29 13:39:19 WARN Selenium [DEPRECATION] Selenium::WebDriver::Chrome#driver_path= is deprecated. Use Selenium::WebDriver::Chrome::Service#driver_path= instead. An error occurred while loading ./spec/system/user_spec.rb. Failure/Error: require File.expand_path('../../config/environment', __FILE__) Selenium::WebDriver::Error::WebDriverError: not executable: "C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/chromedriver-helper-2.1.1/bin/chromedriver-helper" # ./config/application.rb:7:in `<top (required)>' # ./config/environment.rb:2:in `require_relative' # ./config/environment.rb:2:in `<top (required)>' # ./spec/rails_helper.rb:4:in `require' # ./spec/rails_helper.rb:4:in `<top (required)>' # ./spec/system/user_spec.rb:1:in `require' # ./spec/system/user_spec.rb:1:in `<top (required)>' No examples found. Finished in 0.002 seconds (files took 23.03 seconds to load) 0 examples, 0 failures, 1 error occurred outside of examples ### 該当のソースコード require 'rails_helper' describe '照合一覧表示', type: :system do describe '一覧表示' do before do #ユーザ作成 host_test = FactoryBot.create(:host, name:'中村', number: '1',password: 'pass') #品番照合データを作成しておく user_test = FactoryBot.create(:user, name:'35468TGB010', email: '35468TGB010 U8') end context 'ユーザがloginしているとき' do before do #ユーザlogin visit login_path fill_in '号機', with: '1' fill_in 'パスワード', with: 'pass' click_button 'ログイン' end it '一覧表示' do #一覧画面を開く visit users_index_path #一覧表示確認 35468TGB010があることをページに期待する expect(page).to have_content '35468TGB010' end end end end
補足情報(FW/ツールのバージョンなど)
ruby 2.4.5p335 (2018-10-18 revision 65137) [x64-mingw32]
Rails 5.2.3
gem 'factory_bot_rails', '~>4.11'
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
gem 'chromedriver-helper'
gem 'rspec-rails'
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。