Sha256: 6f92f2da6e1f0f2b4624dab58731ef97cf2d75dc6f197a0f576f856fc9031534
Contents?: true
Size: 429 Bytes
Versions: 11
Compression:
Stored size: 429 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' include PoolParty::Monitors describe "CpuMonitor" do before(:each) do @mon = CpuMonitor.new CpuMonitor.stub!(:new).and_return @mon end it "should have the singleton method run defined" do CpuMonitor.respond_to?(:run).should == true end it "should call the method new" do CpuMonitor.should_receive(:new).and_return @mon CpuMonitor.run end end
Version data entries
11 entries across 11 versions & 2 rubygems