Sha256: bdafe435e7af34178a74e2f03d0b51eb193e1b50fd88c716c18cfb3ec9699999
Contents?: true
Size: 693 Bytes
Versions: 4
Compression:
Stored size: 693 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Repository, '.build' do subject { described_class.build(name, uri) } let(:name) { :test } context 'with a registered uri scheme' do let(:uri) { Addressable::URI.parse('memory://test') } it { should be_instance_of(described_class) } its(:name) { should be(name) } its(:adapter) { should eq(Axiom::Adapter.build(uri)) } end context 'with an unregistered uri scheme' do let(:uri) { Addressable::URI.parse('unregistered://test') } let(:msg) { "#{uri.scheme.inspect} is no registered uri scheme" } specify do expect { subject }.to raise_error(Axiom::UnknownAdapterError, msg) end end end
Version data entries
4 entries across 4 versions & 2 rubygems