Sha256: f6ff4733cfb078e651d3641d853a2b3f8f1953a76a303b3644f2f52668d2c24f

Contents?: true

Size: 368 Bytes

Versions: 4

Compression:

Stored size: 368 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Environment, '#repository' do
  include_context 'Environment'

  subject { object.repository(name) }

  context 'when repository exists' do
    let(:name) { :test }

    it { should be_instance_of(Repository) }
  end

  context 'when is not known' do
    let(:name) { :not_here }

    it { should be(nil) }
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
rom-0.2.0 spec/unit/rom/environment/repository_spec.rb
rom-relation-0.1.2 spec/unit/rom/environment/repository_spec.rb
rom-relation-0.1.1 spec/unit/rom/environment/repository_spec.rb
rom-relation-0.1.0 spec/unit/rom/environment/repository_spec.rb