spec/unit/processor_spec.rb in facter-1.7.0 vs spec/unit/processor_spec.rb in facter-1.7.1.rc1

- old
+ new

@@ -27,16 +27,17 @@ end describe "2003" do before :each do proc = stubs 'proc' - proc.stubs(:NumberOfLogicalProcessors).raises(RuntimeError) proc.stubs(:Name).returns("Intel(R) Celeron(R) processor") load(Array.new(2, proc)) end it "should count 2 processors" do + proc.expects(:NumberOfLogicalProcessors).never + Facter.fact(:processorcount).value.should == "2" end it "should squeeze the processor name 2 times" do 2.times do |i|