Sha256: 1a498e7c9b6050524b4d80a255b75729be1e8163b0e5de0c6db3d43304807406

Contents?: true

Size: 775 Bytes

Versions: 3

Compression:

Stored size: 775 Bytes

Contents

require 'spec_helper'

describe BigBrother::ClusterFactory do
  describe '.create_cluster' do
    it 'creates a normal cluster' do
      cluster = BigBrother::ClusterFactory.create_cluster('foo', :fwmark => 100)

      cluster.should be_an_instance_of BigBrother::Cluster
    end

    it 'creates an active_passive cluster' do
      cluster = BigBrother::ClusterFactory.create_cluster('foo', :fwmark => 100, :backend_mode => 'active_passive')

      cluster.should be_an_instance_of BigBrother::ActivePassiveCluster
    end

    it 'creates an active_active cluster' do
      cluster = BigBrother::ClusterFactory.create_cluster('foo', :fwmark => 100, :backend_mode => 'active_active')

      cluster.should be_an_instance_of BigBrother::ActiveActiveCluster
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
big_brother-0.8.8.1 spec/big_brother/cluster_factory_spec.rb
big_brother-0.8.8 spec/big_brother/cluster_factory_spec.rb
big_brother-0.8.7 spec/big_brother/cluster_factory_spec.rb