Sha256: 58228c06969d02b47864769d4f83b5f8b7ce80302ed52a1e21680fd2f129c91b

Contents?: true

Size: 545 Bytes

Versions: 2

Compression:

Stored size: 545 Bytes

Contents

require "spec_helper"

module Lumberg
  describe Cpanel::DnsLookup do
    let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
    let(:api_username) { "lumberg" }
    let(:dns_lookup) do
      described_class.new(
        :server       => server,
        :api_username => api_username
      )
    end

    describe "#name_to_ip" do
      use_vcr_cassette "cpanel/dns_lookup/name_to_ip"

      subject { dns_lookup.name_to_ip({ :domain => 'google.com' })[:params][:data] }

      it { should be_an(Array) }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lumberg-2.0.0.pre4 spec/cpanel/dns_lookup_spec.rb
lumberg-2.0.0.pre3 spec/cpanel/dns_lookup_spec.rb