Sha256: bfb5fc59de1c501ae8ae9a43ce1e49fbd7bf69279144b258226d5dbede3ab350

Contents?: true

Size: 532 Bytes

Versions: 1

Compression:

Stored size: 532 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Environment, '.setup' do
  subject { described_class.setup(config).finalize }

  context 'when a repository config hash is passed' do
    let(:config) { { name => uri } }
    let(:name)   { :test }
    let(:uri)    { 'memory://test' }

    let(:coerced_config) { Hash[test: Repository.build(name, coerced_uri)] }
    let(:coerced_uri)    { Addressable::URI.parse(uri) }

    its(:repositories) { should eql(described_class.new(coerced_config, {}, {}, {}).repositories) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-0.2.0 spec/unit/rom/environment/class_methods/setup_spec.rb