Sha256: 8018c2d58a7400829bdb6b2cf61dc4015415dcdaf3770a15ddcdf9de2a0a6883

Contents?: true

Size: 696 Bytes

Versions: 61

Compression:

Stored size: 696 Bytes

Contents

Shindo.tests("Fog::DNS[:dreamhost] | records", ['dreamhost', 'dns']) do

  service = Fog::DNS[:dreamhost]
  
  tests('#all') do
    records = service.records

    test('should be an array') { records.is_a? Array }

    test('should not be empty') { !records.empty? }
    
    tests('should list Fog::DNS::Dreamhost::Record') do
      records.each do |r|
        test("as records") { r.is_a?(Fog::DNS::Dreamhost::Record) }
      end
    end
  end

  tests('#get') do
    tests('should fetch a record') do
      record = service.records.get do_not_delete_record
      test('should be a Fog::DNS::Dreamhost::Record') do
        record.is_a? Fog::DNS::Dreamhost::Record
      end
    end
  end

end

Version data entries

61 entries across 61 versions & 6 rubygems

Version Path
fog-maestrodev-1.15.0.20130927082724 tests/dreamhost/models/dns/records_tests.rb
fog-maestrodev-1.15.0.20130829165835 tests/dreamhost/models/dns/records_tests.rb
fog-1.15.0 tests/dreamhost/models/dns/records_tests.rb
gapinc-fog-1.14.0 tests/dreamhost/models/dns/records_tests.rb
fog-maestrodev-1.14.0.20130806165225 tests/dreamhost/models/dns/records_tests.rb
fog-1.14.0 tests/dreamhost/models/dns/records_tests.rb
fog-1.13.0 tests/dreamhost/models/dns/records_tests.rb
gapinc-fog-1.12.1.2 tests/dreamhost/models/dns/records_tests.rb
gapinc-fog-1.12.1.1 tests/dreamhost/models/dns/records_tests.rb
gapinc-fog-1.12.1a tests/dreamhost/models/dns/records_tests.rb
gapinc-fog-1.12.1 tests/dreamhost/models/dns/records_tests.rb
fog-1.12.1 tests/dreamhost/models/dns/records_tests.rb
fog-1.12.0 tests/dreamhost/models/dns/records_tests.rb
hpfog-0.0.20 tests/dreamhost/models/dns/records_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/dreamhost/models/dns/records_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/dreamhost/models/dns/records_tests.rb
fog-1.11.1 tests/dreamhost/models/dns/records_tests.rb
fog-1.11.0 tests/dreamhost/models/dns/records_tests.rb
fog-1.10.1 tests/dreamhost/models/dns/records_tests.rb
fog-test-me-1.10.0 tests/dreamhost/models/dns/records_tests.rb