File: package_spec.rb

package info (click to toggle)
ruby-specinfra 2.94.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,448 kB
  • sloc: ruby: 10,538; sh: 4; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'spec_helper'

set :os, { :family => nil }

describe get_command(:check_package_is_installed_by_gem, 'serverspec', '2.0.0') do
  it { should eq 'gem list --local | grep -iw -- \\^serverspec\\  | grep -w -- "[( ]2.0.0[,)]"' }
end

describe get_command(:check_package_is_installed_by_td_agent_gem, 'fluent-plugin-forest', '0.3.0') do
  it { should eq '/usr/sbin/td-agent-gem list --local | grep -iw -- \\^fluent-plugin-forest\\  | grep -w -- "[( ]0.3.0[,)]"' }
end

describe get_command(:check_package_is_installed_by_rvm, 'rbx', '2.4.1') do
  it { should eq 'rvm list strings | grep -iw -- \\^rbx | grep -w -- 2.4.1' }
end