Sha256: 72f25959ed39990d92aa34320b3b44fb7e15204dbc0c52e3825d0111b4a08808

Contents?: true

Size: 904 Bytes

Versions: 9

Compression:

Stored size: 904 Bytes

Contents

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

describe "Hugo DSL" do
  before(:each) do
    mocks        
  end
  
  it "should be valid" do
    block = lambda {|a,b|}
    lambda do
      Hugo &block
    end.should be_true
  end
  

  it "should be_true with cloud block" do
    block = lambda do
      cloud "my_cloud" do end
    end
    
    lambda do
      Hugo &block
    end.should be_true
  end
  
  
  
  it "should deploy infrastructure" do
    block = lambda do
      
      cloud "gmms" do                 
        balancer 
        
        database "sentinel" do 
          server     "jackhq"
          user       "admin"
          password   "mypassword"  
        end
        
        app "sentinel" do
          gem_list = [{:name => "rack"}]                  
        end
      end
    end
    
    lambda do
      Hugo &block
    end.should_not raise_error
    
    
  end

  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hugo-0.1.11 spec/lib/hugo_spec.rb
hugo-0.1.10 spec/lib/hugo_spec.rb
hugo-0.1.9 spec/lib/hugo_spec.rb
hugo-0.1.6 spec/lib/hugo_spec.rb
hugo-0.1.5 spec/lib/hugo_spec.rb
hugo-0.1.4 spec/lib/hugo_spec.rb
hugo-0.1.2 spec/lib/hugo_spec.rb
hugo-0.1.1 spec/lib/hugo_spec.rb
hugo-0.1.0 spec/lib/hugo_spec.rb