Sha256: c5efa8be0914811a9d34aadf97992322981d854cc2cd097ed91403cd65585c0e

Contents?: true

Size: 864 Bytes

Versions: 2

Compression:

Stored size: 864 Bytes

Contents

require "spec_helper"

module Lumberg
  describe Cpanel::Support do
    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
      )
    end

    subject { support }

    describe "::api_module" do
      subject { described_class::api_module }

      it { should == "Contactus" }
    end

    describe "#open_ticket" do
      context "should open a new support request" do
        pending
      end
    end

    describe "#contactable" do
      context "support option enabled" do
        use_vcr_cassette("cpanel/support/contactable", :record => :new_episodes)

        subject { support.contactable[:params][:data][0][:enabled] }

        it { should == 1 }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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