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:
Dmitry Ilyin
2016-04-26 12:15:37 -05:00
parent 37b894a0a6
commit f7aaa3a110
2 changed files with 22 additions and 10 deletions

View File

@@ -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