Sha256: cf8031040d6539b07100d35294069aa7fc9f654c66e2e12600e9bf57461ffc4b

Contents?: true

Size: 514 Bytes

Versions: 7

Compression:

Stored size: 514 Bytes

Contents

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

describe Ec2Tools do
  describe "#initialize" do
    before do
      @conf = { :hoge => 'hage' }
    end
    it "load config and create ec2 instance with config" do
      ec2 = mock(Ec2Tools::EC2)
      Ec2Tools::Config.should_receive(:load) { @conf }
      Ec2Tools::EC2.should_receive(:new).with(@conf) { ec2 }
      Ec2Tools.new.instance_variable_get(:@ec2).should eq(ec2)
    end
  end
  
  # et.keys
  # et.servers(:key).map(:private_ip)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ec2_tools-0.3.3 spec/ec2_tools_spec.rb
ec2_tools-0.3.2 spec/ec2_tools_spec.rb
ec2_tools-0.3.1 spec/ec2_tools_spec.rb
ec2_tools-0.3.0 spec/ec2_tools_spec.rb
ec2_tools-0.2.1 spec/ec2_tools_spec.rb
ec2_tools-0.2.0 spec/ec2_tools_spec.rb
ec2_tools-0.1.0 spec/ec2_tools_spec.rb