Sha256: ca1c78e1ae04462baeb63f5ecd8f934e76dca74c52af45d61c2c8fa5ada282f9
Contents?: true
Size: 778 Bytes
Versions: 8
Compression:
Stored size: 778 Bytes
Contents
require File.dirname(__FILE__) + "/test_helper.rb" class DreamyDnsTest < Test::Unit::TestCase context "Creation" do setup do @xml = <<EOF <data> <account_id>8675309</account_id> <comment></comment> <editable>0</editable> <record>anessalee.net</record> <type>A</type> <value>202.22.191.4</value> <zone>anessalee.net</zone> </data> EOF end should "create a new DNS entry from xml" do d = Dreamy::Dns.new_from_xml(Hpricot.XML(@xml)) assert_equal 8675309, d.account_id assert_equal "", d.comment assert_equal 0, d.editable assert_equal "anessalee.net", d.record assert_equal "A", d.type assert_equal "202.22.191.4", d.value assert_equal "anessalee.net", d.zone end end end
Version data entries
8 entries across 8 versions & 3 rubygems