Sha256: d5c8da62ccd119979ec2395db4e9113ac92621083cd0df33cd3f70d6f2c57d7b
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
require 'spec_helper' require 'whatmask' describe Whatmask do subject do Whatmask.const_get('VERSION') end context "when checking version constant" do it { should_not be_empty } end end describe Whatmask do subject do Whatmask.new(mask) end describe "#new" do describe "Create a new Whatmask object" do context "when given a CIDR notation mask" do let(:mask) { "24" } it { should be_a Whatmask } end context "when given a hexadecimal mask" do let(:mask) { "0xffffff00" } it { should be_a Whatmask } end context "when given a typical subnet mask" do let(:mask) { "255.255.255.0" } it { should be_a Whatmask } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whatmask-1.0.8 | spec/whatmask_spec.rb |