Sha256: 1ab2d97d2e13e95e6ad8425ce3f586b75b9adcfaecbe18739429ac68add47ef5

Contents?: true

Size: 683 Bytes

Versions: 4

Compression:

Stored size: 683 Bytes

Contents

require 'spec_helper'

describe EY::CloudClient::App do
  before(:each) do
    FakeWeb.allow_net_connect = true
    EY::CloudClient.endpoint = EY::CloudClient::Test::FakeAwsm.uri
  end

  describe ".all" do
    it "finds all the apps" do
      api = scenario_cloud_client "One App Many Envs"
      apps = EY::CloudClient::App.all(api)
      apps.size.should == 1
      app = apps.first
      app.name.should == 'rails232app'
    end

    it "includes environments in all apps" do
      api = scenario_cloud_client "One App Many Envs"
      app = api.apps.first
      app.environments.size.should == 2
      app.environments.map(&:name).should =~ %w[giblets bakon]
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
engineyard-cloud-client-1.0.3 spec/engineyard-cloud-client/integration/app_spec.rb
engineyard-cloud-client-1.0.2 spec/engineyard-cloud-client/integration/app_spec.rb
engineyard-cloud-client-1.0.1 spec/engineyard-cloud-client/integration/app_spec.rb
engineyard-cloud-client-1.0.0 spec/engineyard-cloud-client/integration/app_spec.rb