Sha256: ecfd41ddd55a89355d5b0139ce6b46d5eb001d5b6c151cbc7fc439b5e76f8730
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
require 'spec_helper' describe Throttle::Ipfw do before do class Ipfw extend Throttle::Ipfw end end it "should return pipe id" do Ipfw.parse_pipe_id('00200 pipe 1 ip from any to any').must_equal(1) end it "should return nil when there is no pipe id" do Ipfw.parse_pipe_id("00200 pipe ip from any to any").must_be_nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
throttle-0.0.2 | spec/throttle/ipfw_spec.rb |