spec/base_spec.rb in igp-1.0.0 vs spec/base_spec.rb in igp-1.1.0

- old
+ new

@@ -38,20 +38,19 @@ it 'should be Net::Ping::HTTP for :https' do options = { type: :https, url: 'https://localhost' } base = Igp::Base.new(options) expect(base.ping_handler).to be_a(Net::Ping::HTTP) end - # TODO: LDAP was retired from net-ping. to add back in one way or another - # it 'should be Net::Ping::LDAP for :ldap' do - # options = { type: :ldap, url: 'ldap://localhost' } - # base = Igp::Base.new(options) - # expect(base.ping_handler).to be_a(Net::Ping::LDAP) - # end - # it 'should be Net::Ping::LDAP for :ldaps' do - # options = { type: :ldaps, url: 'ldaps://localhost' } - # base = Igp::Base.new(options) - # expect(base.ping_handler).to be_a(Net::Ping::LDAP) - # end + it 'should be Net::Ping::LDAP for :ldap' do + options = { type: :ldap, url: 'ldap://localhost' } + base = Igp::Base.new(options) + expect(base.ping_handler).to be_a(Net::Ping::LDAP) + end + it 'should be Net::Ping::LDAP for :ldaps' do + options = { type: :ldaps, url: 'ldaps://localhost' } + base = Igp::Base.new(options) + expect(base.ping_handler).to be_a(Net::Ping::LDAP) + end end describe '#run' do before do @good = Igp::Base.new({ type: :icmp, host: 'localhost', port: nil, limit: 1 })