spec/unit/processor_spec.rb in facter-1.6.9 vs spec/unit/processor_spec.rb in facter-1.6.10
- old
+ new
@@ -14,9 +14,11 @@
end
def load(procs)
require 'facter/util/wmi'
Facter::Util::WMI.stubs(:execquery).with("select * from Win32_Processor").returns(procs)
+ # This is to workaround #14674
+ Facter.fact(:architecture).stubs(:value).returns("x64")
# processor facts belong to a file with a different name,
# so load the file explicitly (after stubbing kernel),
# but we have to stub execquery first
Facter.collection.loader.load(:processor)