Sha256: 8c837b9b4e0af472f6be7f803a4be3d069a4b3091219317a442593443e843a7a

Contents?: true

Size: 678 Bytes

Versions: 3

Compression:

Stored size: 678 Bytes

Contents

require 'spec_helper'

describe 'Seek' do
  it 'should detect local ip' do
  end

  it 'should search local network' do
  end

  it 'should find nodes' do
  end

  describe 'Query' do
    it 'should default to ICMP without port' do
      expect(Seek.new('').ping_class).to eq(Net::Ping::External)
    end

    it 'should accept ports as integers' do
      expect(Seek.new('', '80').ports).to eq([80])
    end

    it 'should defaults to tcp for ports as integers' do
      expect(Seek.new('', '80').ping_class).to eq(Net::Ping::TCP)
    end

    it 'should accept protocol with port' do
      expect(Seek.new('', '80', 'udp').ping_class).to eq(Net::Ping::UDP)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hooray-0.3.0 spec/hooray/seek_spec.rb
hooray-0.1.9 spec/hooray/seek_spec.rb
hooray-0.1.8 spec/hooray/seek_spec.rb