Sha256: de804e44a8ac0e32395b03ed73c63b89202a987dc54c93090d6e8b34119939ee
Contents?: true
Size: 764 Bytes
Versions: 1
Compression:
Stored size: 764 Bytes
Contents
require 'spec_helper' require 'amass/address' describe Amass::Address do let(:ip) { "93.184.216.34" } let(:cidr) { "93.184.216.0/24" } let(:asn) { 15133 } let(:desc) { "EDGECAST - MCI Communications Services, Inc. d/b/a Verizon Business" } subject { described_class.new(ip: ip, cidr: cidr, asn: asn, desc: desc) } describe "#initialize" do it "must set #ip" do expect(subject.ip).to eq(ip) end it "must set #cidr" do expect(subject.cidr).to eq(cidr) end it "must set #asn" do expect(subject.asn).to eq(asn) end it "must set #desc" do expect(subject.desc).to eq(desc) end end describe "#to_s" do it "must return the #ip" do expect(subject.to_s).to eq(ip) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-amass-0.1.0 | spec/address_spec.rb |