Sha256: 2aa6c7ae573a729ac5e8f39806df439bd8abe91fdfc4f886cf2946bc3aabb415

Contents?: true

Size: 1.72 KB

Versions: 5

Compression:

Stored size: 1.72 KB

Contents

require 'spec_helper'

set :os, :family => 'base'

describe commands.command_class('package').create do
  it { should be_an_instance_of(Specinfra::Command::Base::Package) }
end

describe package('jekyll') do
  it { should be_installed.by('gem') }
end

describe package('invalid-gem') do
  it { should_not be_installed.by('gem') }
end

describe package('jekyll') do
  it { should be_installed.by('gem').with_version('1.1.1') }
end

describe package('jekyll') do
  it { should_not be_installed.by('gem').with_version('invalid-version') }
end

describe package('bower') do
  it { should be_installed.by('npm') }
end

describe package('invalid-npm-package') do
  it { should_not be_installed.by('npm') }
end

describe package('bower') do
  it { should be_installed.by('npm').with_version('0.9.2') }
end

describe package('bower') do
  it { should_not be_installed.by('npm').with_version('invalid-version') }
end

describe package('mongo') do
  it { should be_installed.by('pecl') }
end

describe package('invalid-pecl') do
  it { should_not be_installed.by('pecl') }
end

describe package('mongo') do
  it { should be_installed.by('pecl').with_version('1.4.1') }
end

describe package('mongo') do
  it { should_not be_installed.by('pecl').with_version('invalid-version') }
end

describe package('XML_Util') do
  it { should be_installed.by('pear').with_version('1.2.1') }
end

describe package('supervisor') do
  it { should be_installed.by('pip').with_version('3.0') }
end

describe package('invalid-pip') do
  it { should_not be_installed.by('pip').with_version('invalid-version') }
end

describe package('App::Ack') do
  it { should be_installed.by('cpan') }
end

describe package('App::Ack') do
  it { should be_installed.by('cpan').with_version('2.04') }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 spec/type/base/package_spec.rb
serverspec-2.0.0.beta12 spec/type/base/package_spec.rb
serverspec-2.0.0.beta11 spec/type/base/package_spec.rb
serverspec-2.0.0.beta10 spec/type/base/package_spec.rb
serverspec-2.0.0.beta9 spec/type/base/package_spec.rb