Rspecでwebdriver使用時のエラー解決方法について

エラー1 chromedriverが見つからない

エラー内容

Selenium::WebDriver::Error::WebDriverError:
   Unable to find chromedriver. Please download the server from
   https://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH.
   More info at https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver.

こちらはbrewを使用し、chromedriverを導入しました。

brew install chromedriver

エラー2  “chromedriver”は、開発元を検証できないため開けません。と警告が出る。

Image from Gyazo

こちらを参考にしました。

記事を参考にchromedriverの使用を許可してあげれば大丈夫です。