Sha256: 4a2472279ebe6bdd3ae5482391b899e156d6ea40380163ac4a34012c8d0709d5
Contents?: true
Size: 616 Bytes
Versions: 67
Compression:
Stored size: 616 Bytes
Contents
Shindo.tests('HP::DNS | domain model', ['hp', 'dns', 'domain']) do attributes = {:name => 'www.fogtest.com.', :email => 'test@fogtest.com'} model_tests(HP[:dns].domains, attributes, true) tests('success') do tests('#create').succeeds do attributes = {:name => 'www.fogtest.com.', :email => 'test@fogtest.com', :ttl => 3600} @domain = HP[:dns].domains.create(attributes) !@domain.id.nil? end tests('Update via #save').succeeds do @domain.email = 'update@fogtest.com' @domain.save end tests('#destroy').succeeds do @domain.destroy end end end
Version data entries
67 entries across 67 versions & 5 rubygems