Sha256: 2cc9144c9e35efece08bb29e22cf7c5329697a5a972f4d5434e5a04a769c2186
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
# encoding: utf-8 require 'spec_helper' [ :intersect, :& ].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 ] ] } context 'when the attributes overlap' do let(:other_header) { header.dup } it { should equal(object) } end context 'when the attributes do not overlap' do let(:other_header) { [ [ :name ] ] } it { should be_instance_of(described_class) } it { should be_empty } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/keys/intersect_spec.rb |