Sha256: 5831d402b888b843d261ffd9d25c14eaba2d854b97020bc18972f7879a005769

Contents?: true

Size: 702 Bytes

Versions: 12

Compression:

Stored size: 702 Bytes

Contents

require "helper"

describe Fog::Bouncer::Protocols::ICMP do
  subject { Fog::Bouncer::Protocols::ICMP }

  it "only supports valid AWS ICMP types" do
    lambda { subject.new(256, nil) }.must_raise(Fog::Bouncer::Protocols::InvalidICMPType)
  end
end

describe Fog::Bouncer::Protocols::TCP do
  subject { Fog::Bouncer::Protocols::TCP }

  it "only supports valid port ranges" do
    lambda { subject.new(65536, nil) }.must_raise(Fog::Bouncer::Protocols::InvalidPort)
  end
end

describe Fog::Bouncer::Protocols::UDP do
  subject { Fog::Bouncer::Protocols::UDP }

  it "only supports valid port ranges" do
    lambda { subject.new(65536, nil) }.must_raise(Fog::Bouncer::Protocols::InvalidPort)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fog-bouncer-0.2.7 spec/fog/bouncer/protocols_spec.rb
fog-bouncer-0.2.6 spec/fog/bouncer/protocols_spec.rb
fog-bouncer-0.2.5 spec/fog/bouncer/protocols_spec.rb
fog-bouncer-0.2.4 spec/fog/bouncer/protocols_spec.rb
fog-bouncer-0.2.3 spec/fog/bouncer/protocols_spec.rb
fog-bouncer-0.2.2 spec/fog/bouncer/protocols_spec.rb
fog-bouncer-0.2.1 spec/fog/bouncer/protocols_spec.rb
fog-bouncer-0.2.0 spec/fog/bouncer/protocols_spec.rb
fog-bouncer-0.1.1 spec/fog/bouncer/protocols_spec.rb
fog-bouncer-0.1.0 spec/fog/bouncer/protocols_spec.rb
fog-bouncer-0.0.8 spec/fog/bouncer/protocols_spec.rb
fog-bouncer-0.0.6 spec/fog/bouncer/protocols_spec.rb