Sha256: 684d54accd8b902a9ddc1cd41e947c19a5b87cfcde50707c4177c70b2781fcc7
Contents?: true
Size: 471 Bytes
Versions: 3
Compression:
Stored size: 471 Bytes
Contents
require 'spec_helper' describe Chef::Sugar::Kernel do describe '.require_chef_gem' do it 'raises an exception when the gem is not installed' do expect { described_class.require_chef_gem('bacon') }.to raise_error(Chef::Sugar::Kernel::ChefGemLoadError) end it 'loads the gem' do allow(Chef::Sugar::Kernel).to receive(:require).and_return(true) expect(described_class.require_chef_gem('bacon')).to be_truthy end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chef-sugar-2.2.0 | spec/unit/chef/sugar/kernel_spec.rb |
chef-sugar-2.1.0 | spec/unit/chef/sugar/kernel_spec.rb |
chef-sugar-2.0.0 | spec/unit/chef/sugar/kernel_spec.rb |