Sha256: c964a4b36be40bde41bfeb8eeeb781281bbed76fe759b773db8f57ea51d3ec5e

Contents?: true

Size: 1.59 KB

Versions: 6

Compression:

Stored size: 1.59 KB

Contents

require 'spec_helper'

set :os, :family => 'base'

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

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta19 spec/type/base/package_spec.rb
serverspec-2.0.0.beta18 spec/type/base/package_spec.rb
serverspec-2.0.0.beta17 spec/type/base/package_spec.rb
serverspec-2.0.0.beta16 spec/type/base/package_spec.rb
serverspec-2.0.0.beta15 spec/type/base/package_spec.rb
serverspec-2.0.0.beta14 spec/type/base/package_spec.rb