Sha256: 977a560360ad23f777735ae3992981c44b0cb048ab84fb08eb0a482352ada5e8
Contents?: true
Size: 1.18 KB
Versions: 4
Compression:
Stored size: 1.18 KB
Contents
require 'spec_helper' describe Outliers::Provider do subject { Outliers::Provider } context "#connect_to" do let(:account) { ( { :name => "test_account_1", "provider" => "aws_ec2", "secret_access_key" => "abc", "access_key_id" => "123" } ) } it "should connect to the provider specified in the given account" do expect(subject.connect_to(account).class).to eq(Outliers::Providers::Aws::Ec2) end it "should set the account instance variable" do expect(subject.connect_to(account).account). to eq({ :name => "test_account_1", "provider" => "aws_ec2", "secret_access_key" => "abc", "access_key_id" => "123" }) end end context "#to_human" do it "should return the name a human would use to access the provider" do expect(Outliers::Providers::Aws::Rds.to_human).to eq('aws_rds') end it "should return the name a human would use to access the provider" do expect(Outliers::Providers::Aws::CloudFormation.to_human).to eq('aws_cloud_formation') end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
outliers-0.5.0 | spec/provider_spec.rb |
outliers-0.5.0.beta3 | spec/provider_spec.rb |
outliers-0.5.0.beta2 | spec/provider_spec.rb |
outliers-0.5.0.beta1 | spec/provider_spec.rb |