Sha256: 2c49e96d514ef0f4e6586dbad20ee38d246a86aeca4e1dd6df37224374599cc5

Contents?: true

Size: 1.33 KB

Versions: 13

Compression:

Stored size: 1.33 KB

Contents

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

include PoolParty::Resources

describe "Script" do
  before(:each) do
    
    setup
  end
  describe "wrapped" do
    it "should have inflate as a class method" do
      Script.respond_to?(:inflate).should == true
    end
    it "should have inflate_file as an instance method" do
      Script.respond_to?(:inflate_file).should == true
    end

    describe "with a script" do
      # describe "save!" do
      #   before(:each) do
      #     reset!
      # 
      #     pool :appdotcomcool do
      #       ami "ami-123456"
      #       
      #       cloud :app do
      #         expand_when "cpu > 90", "memory > 80"
      #         contract_when "cpu < 10", "memory < 10"
      #         
      #         has_file :name => "/etc/httpd/httpd.conf"
      #       end
      #     end
      #     @saved = Script.save!(false)
      #   end
      #   it "should save the full keypair" do
      #     @saved.should =~ /keypair ([\w -\/]+)+id_rsa'/
      #   end
      #   it "should save the ami" do
      #     @saved.should =~ /ami 'ami-123456'/
      #   end
      #   it "should save the expansions" do
      #     @saved.should =~ /expand_when 'cpu>90', 'memory>80'/
      #   end
      # end
      # NOT ENTIRELY CERTAIN THIS SHOULD WORK THE SAME WAY IT WORKED BEFORE
      # AL
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
auser-poolparty-1.1.1 spec/poolparty/poolparty/script_spec.rb
auser-poolparty-1.1.3 spec/poolparty/poolparty/script_spec.rb
auser-poolparty-1.1.4 spec/poolparty/poolparty/script_spec.rb
auser-poolparty-1.1.5 spec/poolparty/poolparty/script_spec.rb
auser-poolparty-1.1.6 spec/poolparty/poolparty/script_spec.rb
auser-poolparty-1.1.7 spec/poolparty/poolparty/script_spec.rb
auser-poolparty-1.2.0 spec/poolparty/poolparty/script_spec.rb
auser-poolparty-1.2.1 spec/poolparty/poolparty/script_spec.rb
auser-poolparty-1.2.2 spec/poolparty/poolparty/script_spec.rb
fairchild-poolparty-1.1.3 spec/poolparty/poolparty/script_spec.rb
fairchild-poolparty-1.1.4 spec/poolparty/poolparty/script_spec.rb
fairchild-poolparty-1.1.5 spec/poolparty/poolparty/script_spec.rb
poolparty-1.2.2 spec/poolparty/poolparty/script_spec.rb