Sha256: 5696965becf25eb683e3e8145b2aabdfd75649268c23dec14db287aa2ab12de9
Contents?: true
Size: 503 Bytes
Versions: 4
Compression:
Stored size: 503 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Algebra::Extension, '#header' do subject { object.header } let(:operand) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ]) } let(:extensions) { { :test => lambda { |tuple| 1 } } } let(:object) { described_class.new(operand, extensions) } it_should_behave_like 'an idempotent method' it { should be_instance_of(Relation::Header) } it { should == [ [ :id, Integer ], [ :test, Object ] ] } end
Version data entries
4 entries across 4 versions & 2 rubygems