Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Commit

Permalink
Remove old version of stubs.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderanger committed Apr 30, 2017
1 parent 1ef9ff2 commit 4ef39e8
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/spec/system/resource_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,6 @@
let(:chefspec_options) { {platform: 'ubuntu', version: '16.04'} }
before do
# Stubs load load_current_resource for apt_package.
# allow_any_instance_of(Chef::Provider::Package::Apt).to receive(:shell_out).with('apt-cache', 'policy', 'mylang', any_args).and_return(double(stdout: <<-EOH, error!: nil))
# mylang:
# Installed: (none)
# Candidate: 1.2.3-1
# Version table:
# 1.2.3-1 500
# 500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
# EOH
# allow_any_instance_of(Chef::Provider::Package::Apt).to receive(:shell_out).with('apt-cache', 'policy', 'mylang-dev', any_args).and_return(double(stdout: <<-EOH, error!: nil))
# mylang-dev:
# Installed: (none)
# Candidate: 1.2.3-1
# Version table:
# 1.2.3-1 500
# 500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
# EOH
allow_any_instance_of(Chef::Provider::Package::Apt).to receive(:shell_out) do |this, *args|
args.pop if args.last.is_a?(Hash)
args = Shellwords.split(args.first) if args.size == 1 && args.first.is_a?(String)
Expand Down

0 comments on commit 4ef39e8

Please sign in to comment.