From 18f031216df58311a660fec24dd207ab934415a6 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 3 Feb 2015 16:30:03 -0800 Subject: fix rubygems spec --- spec/unit/provider/package/rubygems_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/unit/provider/package') diff --git a/spec/unit/provider/package/rubygems_spec.rb b/spec/unit/provider/package/rubygems_spec.rb index 8286ecf1b8..dcee3af576 100644 --- a/spec/unit/provider/package/rubygems_spec.rb +++ b/spec/unit/provider/package/rubygems_spec.rb @@ -552,7 +552,7 @@ describe Chef::Provider::Package::Rubygems do it "installs the gem by shelling out when options are provided but no version is given" do @new_resource.options('-i /alt/install/location') - expected ="gem install rspec-core -q --no-rdoc --no-ri -v \"3.1.7\" -i /alt/install/location" + expected ="gem install rspec-core -q --no-rdoc --no-ri -v \"#{@spec_version}\" -i /alt/install/location" expect(@provider).to receive(:shell_out!).with(expected, :env => nil) @provider.run_action(:install) expect(@new_resource).to be_updated_by_last_action -- cgit v1.2.1