summaryrefslogtreecommitdiff
path: root/spec/unit/provider/package/apt_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-16 18:04:35 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-17 13:58:07 -0800
commitaf9b718928a063baac2fc559a3d9b98c25327e01 (patch)
treee5a2ecca47904df1a4db6483bb89c48030cf72df /spec/unit/provider/package/apt_spec.rb
parent4f6fa576a5a46ae9739e1e13fc9f79f1d3c489f8 (diff)
downloadchef-af9b718928a063baac2fc559a3d9b98c25327e01.tar.gz
convert is_virtual_package to hash
make this a hash based on name so that when we pass an array of names to install_package we can look up the right one and do not have to synchronize arrays. we should probably convert the arrays in the superclass to hashes based on name as well.
Diffstat (limited to 'spec/unit/provider/package/apt_spec.rb')
-rw-r--r--spec/unit/provider/package/apt_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/package/apt_spec.rb b/spec/unit/provider/package/apt_spec.rb
index acf0707bbf..8b1d40aab9 100644
--- a/spec/unit/provider/package/apt_spec.rb
+++ b/spec/unit/provider/package/apt_spec.rb
@@ -356,7 +356,7 @@ mpg123 1.12.1-0ubuntu1
describe "when installing a virtual package" do
it "should install the package without specifying a version" do
- @provider.is_virtual_package = true
+ @provider.is_virtual_package['libmysqlclient-dev'] = true
expect(@provider).to receive(:shell_out!).with(
"apt-get -q -y install libmysqlclient-dev",
:env => {"DEBIAN_FRONTEND" => "noninteractive", "LC_ALL" => nil },