Sha256: f80edbc282808266d9039471fe23fff1a330bb59ace3cf2249a7f70a55f3cef2
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
# encoding: utf-8 require 'spec_helper' [ :union, :| ].each do |method| describe Relation::Keys, "##{method}" do subject { object.send(method, other) } let(:object) { described_class.coerce([ header ]) } let(:other) { described_class.coerce([ other_header ]) } let(:header) { [ [ :id, Integer] ] } context 'when the attributes overlap' do let(:other_header) { [ [ :id, Integer ] ] } it { should equal(object) } end context 'when the attributes do not overlap' do let(:other_header) { [ [ :name, String ] ] } it { should be_instance_of(described_class) } it { should == [ header, other_header ] } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/keys/union_spec.rb |