diff --git a/spec/facter/util/rhsm_available_pools_spec.rb b/spec/facter/util/rhsm_available_pools_spec.rb index c9daa18..c534df3 100755 --- a/spec/facter/util/rhsm_available_pools_spec.rb +++ b/spec/facter/util/rhsm_available_pools_spec.rb @@ -92,7 +92,7 @@ '/usr/sbin/subscription-manager', ).and_return(true) allow(Puppet.features).to receive(:facter_cacheable?).and_return(true) - allow(Facter::Util::Facter_cacheable).to receive(:cached?).and_return(false) + allow(Facter::Util::FacterCacheable).to receive(:cached?).and_return(false) end it 'returns nothing when there is an error with subscription' do expect(Facter::Core::Execution).to receive(:execute).with(