Sha256: 758816e31417ea542d0c5472d8c69104626fc0bd1d87500c0314cb37919c5e65

Contents?: true

Size: 955 Bytes

Versions: 28

Compression:

Stored size: 955 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'
require "open-uri"

describe "basic" do
  before(:each) do
    @example_dir = ::File.join(::File.dirname(__FILE__), "..", "..", "..", "examples")
    reset!
    PoolParty::Script.inflate open(@example_dir + "/basic.rb").read
  end
  it "should have one pool called :app" do
    pool(:app).should_not be_nil
  end
  it "should have a cloud called :app" do
    pool(:app).cloud(:app).should_not be_nil
  end
  it "should have a cloud called :db" do
    pool(:app).cloud(:db).should_not be_nil
  end
  it "should set the minimum_instances on the cloud to 2 (overriding the pool options)" do
    pool(:app).cloud(:app).minimum_instances.should == 2
  end
  it "should set the maximum_instances on the cloud to 5" do
    pool(:app).cloud(:app).maximum_instances.should == 5
  end
  it "should set the minimum_instances on the db cloud to 3" do
    pool(:app).cloud(:db).minimum_instances.should == 3
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
auser-poolparty-0.2.64 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.65 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.66 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.67 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.68 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.69 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.70 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.71 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.72 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.74 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.76 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.77 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.78 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.79 spec/poolparty/pool/example_spec.rb
auser-poolparty-0.2.80 spec/poolparty/poolparty/example_spec.rb
auser-poolparty-0.2.81 spec/poolparty/poolparty/example_spec.rb
auser-poolparty-0.2.84 spec/poolparty/poolparty/example_spec.rb
auser-poolparty-0.2.85 spec/poolparty/poolparty/example_spec.rb
auser-poolparty-0.2.88 spec/poolparty/poolparty/example_spec.rb
auser-poolparty-0.2.89 spec/poolparty/poolparty/example_spec.rb