spec/pry-doc_spec.rb in pry-doc-1.4.0 vs spec/pry-doc_spec.rb in pry-doc-1.5.0
- old
+ new
@@ -4,11 +4,11 @@
require "#{direc}/../lib/pry-doc"
require "#{direc}/helper"
require "#{direc}/gem_with_cext/gems/sample"
require 'set'
require 'fileutils'
-require 'readline'
+require 'socket'
puts "Testing pry-doc version #{PryDoc::VERSION}..."
puts "Ruby version: #{RUBY_VERSION}"
RSpec.describe PryDoc do
@@ -302,10 +302,10 @@
end
end
describe "C stdlib methods" do
it "finds them" do
- obj = Pry::MethodInfo.info_for(Readline.method(:readline))
+ obj = Pry::MethodInfo.info_for(Socket.method(:getaddrinfo))
expect(obj).not_to be_nil
end
it "finds well hidden docs like BigDecimal docs" do
require 'bigdecimal'