Sha256: 73c8eb8f6f1db389aa7684a90c7b759ae5b6da552af4f1d29542a3e2d0d38128

Contents?: true

Size: 620 Bytes

Versions: 11

Compression:

Stored size: 620 Bytes

Contents

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

include PoolParty::Monitors

describe "Monitors" do
  it "should have a list of available monitors" do
    PoolParty::Monitors.available_monitors.empty?.should == false
  end
  it "should register a module and append it to the available monitors" do
    size = PoolParty::Monitors.available_monitors.size
    PoolParty::Monitors.register_monitor :fake
    size.should == PoolParty::Monitors.available_monitors.size - 1
  end
end
describe "BaseMonitor" do
  it "should have the singleton method run defined" do
    BaseMonitor.respond_to?(:run).should == true
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
auser-poolparty-0.2.15 spec/poolparty/monitors/base_monitor_spec.rb
auser-poolparty-0.2.16 spec/poolparty/monitors/base_monitor_spec.rb
auser-poolparty-0.2.20 spec/poolparty/monitors/base_monitor_spec.rb
auser-poolparty-0.2.21 spec/poolparty/monitors/base_monitor_spec.rb
auser-poolparty-0.2.22 spec/poolparty/monitors/base_monitor_spec.rb
auser-poolparty-0.2.23 spec/poolparty/monitors/base_monitor_spec.rb
auser-poolparty-0.2.24 spec/poolparty/monitors/base_monitor_spec.rb
auser-poolparty-0.2.25 spec/poolparty/monitors/base_monitor_spec.rb
auser-poolparty-0.2.26 spec/poolparty/monitors/base_monitor_spec.rb
auser-poolparty-0.2.35 spec/poolparty/monitors/base_monitor_spec.rb
poolparty-0.2.18 spec/poolparty/monitors/base_monitor_spec.rb