Skip to content

Instantly share code, notes, and snippets.

@mcshakes
Last active March 16, 2017 21:11
Show Gist options
  • Save mcshakes/3144ef9cc7e55b324ee2badae899ca01 to your computer and use it in GitHub Desktop.
Save mcshakes/3144ef9cc7e55b324ee2badae899ca01 to your computer and use it in GitHub Desktop.
OpenSSL errors when I run rspec with watir 6.0

Getting these errors after rspec

/Users/EdwardMcCarthy/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin14/openssl.bundle: warning: already initialized constant OpenSSL::VERSION
/Users/EdwardMcCarthy/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin14/openssl.bundle: warning: already initialized constant OpenSSL::OPENSSL_VERSION
/Users/EdwardMcCarthy/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin14/openssl.bundle: warning: already initialized constant OpenSSL::OPENSSL_LIBRARY_VERSION

The fix:

gem uninstall openssl -v 2.0.3

gem install openssl -v 2.0.2 (this is optional, but I did it)

Gemfile.lock:

selenium-webdriver (3.0.5)
      childprocess (~> 0.5)
      rubyzip (~> 1.0)
      websocket (~> 1.0)
    watir (6.1.0)
      selenium-webdriver (~> 3.0)
    watir-scroll (0.3.0)
      watir (>= 6.0)
      ```
      
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment