spec/cpanel/support_spec.rb in lumberg-2.0.0.pre4 vs spec/cpanel/support_spec.rb in lumberg-2.0.0.pre5
- old
+ new
@@ -1,15 +1,15 @@
require "spec_helper"
module Lumberg
describe Cpanel::Support 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(:support) do
described_class.new(
- :server => server,
- :api_username => api_username
+ server: server,
+ api_username: api_username
)
end
subject { support }
@@ -25,10 +25,10 @@
end
end
describe "#contactable" do
context "support option enabled" do
- use_vcr_cassette("cpanel/support/contactable", :record => :new_episodes)
+ use_vcr_cassette("cpanel/support/contactable", record: :new_episodes)
subject { support.contactable[:params][:data][0][:enabled] }
it { should == 1 }
end