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.57 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.58 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.59 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.60 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.61 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.62 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.63 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.64 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.65 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.66 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.67 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.68 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.69 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.70 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.71 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.72 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.74 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.76 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.77 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
auser-poolparty-0.2.78 spec/poolparty/monitors/monitors/cpu_monitor_spec.rb