Sha256: 7ce5d44bb92c2478015f40b9b0d7ab045e9cc7b819dbccbab843900c8694a6c4

Contents?: true

Size: 569 Bytes

Versions: 6

Compression:

Stored size: 569 Bytes

Contents

require 'spec_helper'

module Config
  module Factory
    module Environments
      describe '#load_file' do
        it 'loads a multi-environment config file' do
          envs = Environments.load_file('spec/data/multiple-environments.yml')
          expect(envs).to be_a(Hash)
          expect(envs.size).to eq(4)
          [:defaults, :development, :test, :production].each do |env_name|
            env = envs[env_name]
            expect(env).to be_an(Environment)
            expect(env.name).to eq(env_name)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
config-factory-0.0.6 spec/unit/config/factory/environments_spec.rb
config-factory-0.0.5 spec/unit/config/factory/environments_spec.rb
config-factory-0.0.4 spec/unit/config/factory/environments_spec.rb
config-factory-0.0.3 spec/unit/config/factory/environments_spec.rb
config-factory-0.0.2 spec/unit/config/factory/environments_spec.rb
config-factory-0.0.1 spec/unit/config/factory/environments_spec.rb