Sha256: 78a2083fbb6963b89c4e962a31fbc0624181de0c0a515eb15b92366073f68303

Contents?: true

Size: 680 Bytes

Versions: 1

Compression:

Stored size: 680 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

1 entries across 1 versions & 1 rubygems

Version Path
hooray-0.1.5 spec/hooray/seek_spec.rb