Sha256: ad715c53037cb6a2490d3801be46472e1b45ea0c09d349595695b8c3cc6f197a

Contents?: true

Size: 386 Bytes

Versions: 55

Compression:

Stored size: 386 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

include PoolParty::Monitors

describe "CpuMonitor" do
  before(:each) do
    @mon = CpuMonitor.new
  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

55 entries across 55 versions & 2 rubygems

Version Path
auser-poolparty-0.2.36 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.37 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.38 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.39 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.40 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.41 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.42 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.44 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.45 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.46 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.47 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.48 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.49 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.50 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.51 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.52 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.53 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.54 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.55 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.56 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb