Sha256: eb97b080035a6999313a49efcc2180dfc8d3ff21fd81c450ca1409af2fee496b

Contents?: true

Size: 973 Bytes

Versions: 176

Compression:

Stored size: 973 Bytes

Contents

require 'spec_helper'

describe Puppet::Type.type(:package).provider(:pip3) do

  it { is_expected.to be_installable }
  it { is_expected.to be_uninstallable }
  it { is_expected.to be_upgradeable }
  it { is_expected.to be_versionable }
  it { is_expected.to be_install_options }
  it { is_expected.to be_targetable }

  it "should inherit most things from pip provider" do
    expect(described_class < Puppet::Type.type(:package).provider(:pip))
  end

  it "should use pip3 command" do
    expect(described_class.cmd).to eq(["pip3"])
  end

  context 'calculated specificity' do
    context 'when is not defaultfor' do
      subject { described_class.specificity }
      it { is_expected.to eql 1 }
    end

    context 'when is defaultfor' do
      let(:os) {  Facter.value(:operatingsystem) }
      subject do
        described_class.defaultfor(operatingsystem: os)
        described_class.specificity
      end
      it { is_expected.to be > 100 }
    end
  end

end

Version data entries

176 entries across 176 versions & 1 rubygems

Version Path
puppet-6.0.10 spec/unit/provider/package/pip3_spec.rb
puppet-6.0.10-x86-mingw32 spec/unit/provider/package/pip3_spec.rb
puppet-6.0.10-x64-mingw32 spec/unit/provider/package/pip3_spec.rb
puppet-6.0.10-universal-darwin spec/unit/provider/package/pip3_spec.rb
puppet-5.5.16 spec/unit/provider/package/pip3_spec.rb
puppet-5.5.16-x86-mingw32 spec/unit/provider/package/pip3_spec.rb
puppet-5.5.16-x64-mingw32 spec/unit/provider/package/pip3_spec.rb
puppet-5.5.16-universal-darwin spec/unit/provider/package/pip3_spec.rb
puppet-6.6.0 spec/unit/provider/package/pip3_spec.rb
puppet-6.6.0-x86-mingw32 spec/unit/provider/package/pip3_spec.rb
puppet-6.6.0-x64-mingw32 spec/unit/provider/package/pip3_spec.rb
puppet-6.6.0-universal-darwin spec/unit/provider/package/pip3_spec.rb
puppet-6.5.0 spec/unit/provider/package/pip3_spec.rb
puppet-6.5.0-x86-mingw32 spec/unit/provider/package/pip3_spec.rb
puppet-6.5.0-x64-mingw32 spec/unit/provider/package/pip3_spec.rb
puppet-6.5.0-universal-darwin spec/unit/provider/package/pip3_spec.rb