Getting started with rails testing and following this tutorial.
When I run the first test with rspec spec/hello_world.rb
I get the following errors:
WARN Selenium [DEPRECATION] [:capabilities] The :capabilities parameter for Selenium::WebDriver::Chrome::Driver is deprecated. Use :options argument with an instance of Selenium::WebDriver::Chrome::Driver instead.
And
Failures:
Hello World index page shows the right content Got 0 failures and 2 other errors:
1.1) Failure/Error: visit hello_world_index_path
TypeError: no implicit conversion of nil into String # ./spec/hello_world_spec.rb:9:in `block (3 levels) in <top (required)>'
1.2) Failure/Error: @pid = Process.spawn(*@command, options)
TypeError: no implicit conversion of nil into String
With the stack trace showing: ruby/gems/3.1.0/gems/selenium-webdriver-4.8.2/lib/selenium/webdriver/common/child_process.rb:57:in `spawn'
I am using the most up to date webdrivers and selenium-webdriver.
I am on an m1 macbook and found this solution to update my chrome-drivers but it still results in same error.
I am out of ideas now and have been unable to even start learning how to test with rails so any help would be greatly appreciated.