Sha256: deb5db360ad056521efb2a63f94229f45e7322fa2e49b75721f25c65e414bb78
Contents?: true
Size: 1022 Bytes
Versions: 8
Compression:
Stored size: 1022 Bytes
Contents
shared_examples_for 'support package installed matcher' do |name| describe 'be_installed' do describe package(name) do it { should be_installed } end describe 'invalid-package' do it { should_not be_installed } end end end shared_examples_for 'support package installed by gem matcher' do |name| describe 'installed by gem' do describe package(name) do it { should be_installed.by('gem') } end describe 'invalid-gem' do it { should_not be_installed.by('gem') } end end end shared_examples_for 'support package installed by gem with version matcher' do |name, version| describe 'installed by gem with version' do before :all do RSpec.configure do |c| c.stdout = "#{name} (#{version})" end end describe package(name) do it { should be_installed.by('gem').with_version(version) } end describe package(name) do it { should_not be_installed.by('gem').with_version('invalid-version') } end end end
Version data entries
8 entries across 8 versions & 1 rubygems