Sha256: 73bc1d497888eaebd9ffc7cd31f99021af9a62f73ec82e04e8c4e06272bcc85b
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Adapter::Memory, '#[]' do subject { object[name] } let!(:object) { described_class.new(users: relation) } let(:relation) { double('relation', :materialized? => false) } context 'with a known name' do let(:name) { :users } it { should eql(Relation::Variable.new(relation)) } end context 'with an unknown name' do let(:name) { :unknown } specify do expect { subject }.to raise_error( Adapter::Memory::UnknownRelationError, 'the relation named unknown is unknown' ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-memory-adapter-0.0.2 | spec/unit/axiom/adapter/memory/element_reader_spec.rb |