Modernise for rspec
Fix for nokogiri