No more use loadall() for default_profider_for() function
Change-Id: Id16605cc834e0071328bec667fcc27502a2c0f30
Closes-Bug: #1575269
(cherry picked from commit b82c12e9f3)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe 'default_provider_for' do
|
||||
let(:facts) {{
|
||||
:osfamily => 'Debian',
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:kernel => 'Linux',
|
||||
:l23_os => 'ubuntu',
|
||||
:l3_fqdn_hostname => 'stupid_hostname',
|
||||
}}
|
||||
|
||||
it { is_expected.not_to eq(nil) }
|
||||
it { is_expected.to run.with_params('file').and_return('posix') }
|
||||
end
|
||||
Reference in New Issue
Block a user