An error occurred while loading ./spec/models/user_spec.rb.
Failure/Error: require_relative '../config/environment'
NoMethodError:
undefined method `driver_path=' for Selenium::WebDriver::Chrome:Module
# /home/umair/.rvm/gems/ruby-2.7.0/gems/chromedriver-helper-2.1.1/lib/chromedriver-helper.rb:4:in `<main>'
# /home/umair/.rvm/gems/ruby-2.7.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
# /home/umair/.rvm/gems/ruby-2.7.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
# ./config/application.rb:10:in `<top (required)>'
# ./config/environment.rb:4:in `require_relative'
# ./config/environment.rb:4:in `<top (required)>'
# ./spec/rails_helper.rb:4:in `require_relative'
# ./spec/rails_helper.rb:4:in `<top (required)>'
# ./spec/models/user_spec.rb:1:in `require'
# ./spec/models/user_spec.rb:1:in `<top (required)>'
No examples found.
我是Ruby on Rails的新手,找不到问题。
1条答案
按热度按时间mw3dktmi1#
检查您的系统是否具有良好的依赖性:)