Sha256: f41383ff22613289c2406ad5e6a45981eee8911372583797f07905f41b1eaf29

Contents?: true

Size: 995 Bytes

Versions: 15

Compression:

Stored size: 995 Bytes

Contents

require "spec_helper"

module Lumberg
  describe Cpanel::Gpg do
    let(:server) { Whm::Server.new(host: @whm_host, hash: @whm_hash) }
    let(:api_username) { "lumberg" }
    let(:gpg) do
      described_class.new(
        server:       server,
        api_username: api_username
      )
    end

    describe "#list" do
      use_vcr_cassette "cpanel/gpg/list"

      subject { gpg.list[:params][:data] }

      it { should be_an(Array) }
    end

    describe "#count" do
      use_vcr_cassette "cpanel/gpg/count"

      subject { gpg.count[:params][:data][0][:count] }

      it { should be_a(Integer) }
    end

    describe "#list_private" do
      use_vcr_cassette "cpanel/gpg/list_private"

      subject { gpg.list_private[:params][:data] }

      it { should be_an(Array) }
    end

    describe "#count_private" do
      use_vcr_cassette "cpanel/gpg/count_private"

      subject { gpg.count_private[:params][:data][0][:count] }

      it { should be_a(Integer) }
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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