Sha256: 73823232015e3cfa614c803822f243b2081fea4b609d386bab637427a9519954
Contents?: true
Size: 445 Bytes
Versions: 2
Compression:
Stored size: 445 Bytes
Contents
require 'spec_helper' module Alf module Algebra describe Hierarchize, "heading" do let(:base){ {id: Integer, parent: Integer, city: String} } let(:operand){ an_operand.with_heading(base) } let(:op){ a_lispy.hierarchize(operand, :id, :parent, :as) } subject{ op.heading } it{ should eq(Relation.type(base){|r| {:as => r} }.heading) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-core-0.15.0 | spec/unit/alf-algebra/operator/hierarchize/test_heading.rb |
alf-core-0.14.0 | spec/unit/alf-algebra/operator/hierarchize/test_heading.rb |