Sha256: 0598347585b9aad3c22f2cc3d0c65bc8257ff00b9708b4963114faddd570a679

Contents?: true

Size: 849 Bytes

Versions: 15

Compression:

Stored size: 849 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

15 entries across 15 versions & 1 rubygems

Version Path
lumberg-4.1.0 spec/cpanel/support_spec.rb
lumberg-4.0.0 spec/cpanel/support_spec.rb
lumberg-3.1.0 spec/cpanel/support_spec.rb
lumberg-3.0.0 spec/cpanel/support_spec.rb
lumberg-2.0.1 spec/cpanel/support_spec.rb
lumberg-2.0.0 spec/cpanel/support_spec.rb
lumberg-2.0.0.pre20 spec/cpanel/support_spec.rb
lumberg-2.0.0.pre18 spec/cpanel/support_spec.rb
lumberg-2.0.0.pre15 spec/cpanel/support_spec.rb
lumberg-2.0.0.pre12 spec/cpanel/support_spec.rb
lumberg-2.0.0.pre9 spec/cpanel/support_spec.rb
lumberg-2.0.0.pre8 spec/cpanel/support_spec.rb
lumberg-2.0.0.pre7 spec/cpanel/support_spec.rb
lumberg-2.0.0.pre6 spec/cpanel/support_spec.rb
lumberg-2.0.0.pre5 spec/cpanel/support_spec.rb