Sha256: e7f1276a89534c3e4c0619e933deab59da646c2bab452c40753431cd76526f85

Contents?: true

Size: 814 Bytes

Versions: 6

Compression:

Stored size: 814 Bytes

Contents

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

describe "Proviso Command" do
  before(:each) do
    #hash = {"ec2" => {"image_id"=>"ami-2d4aa444", "availability_zone"=>"us-east-1c", "key_name"=>"ec2-keypair", "security_group"=>"default", "max_count"=>1}}
    #YAML.stub!(:load_file).and_return(hash)
  end
  
  it "should return hello world" do
    Proviso::Command.run('hello:world').should == "Hello World"
  end
  
  it "should return error on hello:foobar" do 
    lambda { Proviso::Command.run('hello:foobar') }.should raise_error
  end
  
  # it "should return status of instance" do
  #   Proviso::Command.run('ec2:status',['i-3d8b0157'])
  # end
  # 
  # it "should link server " do
  #   Proviso::Command.run('zerigo:link',['staging.example.com','127.0.0.1'])
  #   
  # end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
proviso-0.2.0 spec/proviso/command_spec.rb
proviso-0.2.0.beta4 spec/proviso/command_spec.rb
proviso-0.2.0.beta3 spec/proviso/command_spec.rb
proviso-0.2.0.beta2 spec/proviso/command_spec.rb
proviso-0.2.0.beta1 spec/proviso/command_spec.rb
proviso-0.1.0 spec/proviso/command_spec.rb