Sha256: 5089cbfcfea0fc08ca160b64fab3d4b97e19a7a3bead77dad31b8cbfa01aeed7

Contents?: true

Size: 1.06 KB

Versions: 9

Compression:

Stored size: 1.06 KB

Contents

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

describe "Configurer" do
  before(:each) do
    reset!
    $pool_specfile = @basic = File.join(File.dirname(__FILE__), "files", "ruby_basic.rb")
    PoolParty::Pool::Pool.load_from_file @basic
    @conf = Object.new
  end
  it "should not be nil" do
    @conf.should_not be_nil
  end
  
  describe "with a spec file" do
    describe "clouds" do
      before(:each) do
        reset!
        PoolParty::Pool::Pool.load_from_file @basic
        @cloud = clouds[:app]
      end
      it "should contain a list of the clouds within the pool (:app)" do
        @cloud.should_not be_nil
      end
      it "should set the minimum instances on the :app cloud" do
        @cloud.minimum_instances.should == 1
      end
      it "should set the maximum instances on the :app cloud" do
        @cloud.maximum_instances.should == 5
      end
      it "should set the keypair name on the :app cloud too" do
        @cloud.keypair.to_s.should =~ /id_rsa/
      end
    end
  end
  
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
auser-poolparty-1.2.10 spec/poolparty/poolparty/configurers/ruby_spec.rb
auser-poolparty-1.2.11 spec/poolparty/poolparty/configurers/ruby_spec.rb
auser-poolparty-1.2.12 spec/poolparty/poolparty/configurers/ruby_spec.rb
auser-poolparty-1.2.3 spec/poolparty/poolparty/configurers/ruby_spec.rb
auser-poolparty-1.2.4 spec/poolparty/poolparty/configurers/ruby_spec.rb
auser-poolparty-1.2.7 spec/poolparty/poolparty/configurers/ruby_spec.rb
auser-poolparty-1.2.8 spec/poolparty/poolparty/configurers/ruby_spec.rb
auser-poolparty-1.2.9 spec/poolparty/poolparty/configurers/ruby_spec.rb
fairchild-poolparty-1.2.12 spec/poolparty/poolparty/configurers/ruby_spec.rb