Sha256: db51ac21bdda803c9c32c69dedbb17615fe404c835a28b1db27d270ed9b7b7b9
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
require 'test_helper' class DslTest < Test::Unit::TestCase def test_simple dsl = Clouddns::DSL.parse_string <<-EOL zone "example.com." do A 'www.example.com.', '1.2.3.4' end EOL assert_equal 1, dsl.zones.count zone = dsl.zones.first assert_equal 'example.com.', zone.name assert_equal 1, zone.records.count record = zone.records.first assert_equal 'A', record.type assert_equal 'www.example.com.', record.name assert_equal ['1.2.3.4'], record.value end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clouddns-0.0.1 | test/dsl_test.rb |