spec/cpanel/random_data_spec.rb in lumberg-2.0.0.pre4 vs spec/cpanel/random_data_spec.rb in lumberg-2.0.0.pre5
- old
+ new
@@ -1,22 +1,22 @@
require "spec_helper"
module Lumberg
describe Cpanel::RandomData 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(:random_data) do
described_class.new(
- :server => server,
- :api_username => api_username
+ server: server,
+ api_username: api_username
)
end
describe "#show" do
use_vcr_cassette "cpanel/random_data/show"
it "gets a random string" do
- result = random_data.show({ :length => 10 })[:params][:data]
+ result = random_data.show({ length: 10 })[:params][:data]
result[0][:random].size.should === 10
end
end
end