Commit 91e11887 authored by Colin Shea's avatar Colin Shea

fix tests for a4 -> aaaa

parent 85b6e81e
......@@ -33,13 +33,13 @@ describe Zone do
it "should create name with ipv4 and ipv6" do
subject.a "www", "127.0.0.1", "::ffff:7f00:1"
subject.zonefile.a.must_equal [{:class=>"IN", :name=>"www", :ttl=>nil, :host=>"127.0.0.1"}]
subject.zonefile.a4.must_equal [{:class=>"IN", :name=>"www", :ttl=>nil, :host=>"::ffff:7f00:1"}]
subject.zonefile.aaaa.must_equal [{:class=>"IN", :name=>"www", :ttl=>nil, :host=>"::ffff:7f00:1"}]
end
it "should create name with ipv4, ipv6 and TTL" do
subject.a "www", "127.0.0.1", "::ffff:7f00:1", 600
subject.zonefile.a.must_equal [{:class=>"IN", :name=>"www", :ttl=>600, :host=>"127.0.0.1"}]
subject.zonefile.a4.must_equal [{:class=>"IN", :name=>"www", :ttl=>600, :host=>"::ffff:7f00:1"}]
subject.zonefile.aaaa.must_equal [{:class=>"IN", :name=>"www", :ttl=>600, :host=>"::ffff:7f00:1"}]
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment