Sha256: 0aa7fa1ed67589356940c6282dc53b6eba9be1193257b8a009a293c23c2feed9
Contents?: true
Size: 760 Bytes
Versions: 4
Compression:
Stored size: 760 Bytes
Contents
require 'spec_helper' module Alf describe Heading, "intersection" do subject{ left & right } context 'with disjoint headings' do let(:left) { Heading[:name => String] } let(:right){ Heading[:city => String] } it{ should eq(Heading[{}]) } end context 'with non disjoint headings' do let(:left) { Heading[:id => Integer, :name => String] } let(:right){ Heading[:id => Integer, :status => Integer] } it { should eq(Heading[:id => Integer]) } end context 'with non disjoint headings and sub types' do let(:left) { Heading[:id => Fixnum, :name => String] } let(:right){ Heading[:id => Integer, :status => Integer] } it { should eq(Heading[:id => Integer]) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems