test/dns/zerigo_test.rb in rubber-2.0.8 vs test/dns/zerigo_test.rb in rubber-2.1.0
- old
+ new
@@ -119,9 +119,15 @@
record = @zone.records.all.first
attributes = @dns.hosts_to_opts([record])
assert_equal ['1.1.1.2'], attributes[:data]
end
+ should "find no records" do
+ # Wildcard search.
+ records = @dns.find_host_records(:host => 'foo', :domain => @domain)
+ assert_equal 0, records.size
+ end
+
should "find_records" do
# Set up some sample records.
created = []
created << {:host => 'host1', :domain => @domain, :data => ['1.1.1.1'], :type => 'A'}
created << {:host => '', :domain => @domain, :data => ['1.1.1.1'], :type => 'A'}