spec/cpanel/dns_lookup_spec.rb in lumberg-2.0.0.pre4 vs spec/cpanel/dns_lookup_spec.rb in lumberg-2.0.0.pre5
- old
+ new
@@ -1,21 +1,21 @@
require "spec_helper"
module Lumberg
describe Cpanel::DnsLookup do
- let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
+ 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
+ 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] }
+ subject { dns_lookup.name_to_ip({ domain: 'google.com' })[:params][:data] }
it { should be_an(Array) }
end
end
end