Sha256: bea4818937bbed92a15294bb66d8f5ffa8fa9d8d1608d3f1d1d8761c6d8cd78f

Contents?: true

Size: 510 Bytes

Versions: 14

Compression:

Stored size: 510 Bytes

Contents

require 'spec_helper'

describe Outliers::Providers do
  subject { Outliers::Providers }
  before do
    subject.stub :all_the_modules => [Outliers::Providers::Aws, Outliers::Providers::Aws::Ec2]
  end

  it "should return all the providers" do
    expect(subject.all).to eq([Outliers::Providers::Aws::Ec2])
  end

  context "#name_map" do
    it "should return a map of resource human names to objects" do
      expect(subject.name_map).to eq({ 'aws_ec2' => Outliers::Providers::Aws::Ec2 })
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
outliers-0.6.0 spec/providers_spec.rb
outliers-0.5.1 spec/providers_spec.rb
outliers-0.5.0 spec/providers_spec.rb
outliers-0.5.0.beta3 spec/providers_spec.rb
outliers-0.5.0.beta2 spec/providers_spec.rb
outliers-0.5.0.beta1 spec/providers_spec.rb
outliers-0.3.3 spec/providers_spec.rb
outliers-0.3.2 spec/providers_spec.rb
outliers-0.3.1 spec/providers_spec.rb
outliers-0.3.0 spec/providers_spec.rb
outliers-0.2.0 spec/providers_spec.rb
outliers-0.1.1 spec/providers_spec.rb
outliers-0.1.0 spec/providers_spec.rb
outliers-0.0.1 spec/providers_spec.rb