Sha256: ba4d465866ebd179da649e82ff8628e51f86b2cb5d9e223b6db586c2bf57cc99

Contents?: true

Size: 633 Bytes

Versions: 26

Compression:

Stored size: 633 Bytes

Contents

require 'spec_helper'

describe EY::Collection::Environments do
  before do
    @collection_class = EY::Collection::Environments
    @collection = @collection_class.new([
      EY::Model::Environment.from_hash("id" => 1234, "name" => "app_production"),
      EY::Model::Environment.from_hash("id" => 4321, "name" => "app_staging"),
      EY::Model::Environment.from_hash("id" => 8765, "name" => "bigapp_staging"),
      EY::Model::Environment.from_hash("id" => 4532, "name" => "app_duplicate"),
      EY::Model::Environment.from_hash("id" => 4533, "name" => "app_duplicate"),
    ])
  end

  include_examples "model collections"
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
engineyard-1.4.6 spec/engineyard/collection/environments_spec.rb
engineyard-1.4.5 spec/engineyard/collection/environments_spec.rb
engineyard-1.4.4 spec/engineyard/collection/environments_spec.rb
engineyard-1.4.3 spec/engineyard/collection/environments_spec.rb
engineyard-1.4.2 spec/engineyard/collection/environments_spec.rb
engineyard-1.4.1 spec/engineyard/collection/environments_spec.rb