Sha256: cedb980c87bab3d1717bcba72692509f91bfbb0e993187deacfae6e35fc41ae1
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Algebra::Projection::Methods, '#project' do subject { object.project(attributes) } let(:described_class) { Relation } let(:attributes) { [ :id ] } let(:object) { described_class.new([ [ :id, Integer ], [ :name, String ] ], LazyEnumerable.new([ [ 1, 'Dan Kubb' ] ])) } it { should be_instance_of(Algebra::Projection) } its(:header) { should == [ [ :id, Integer ] ] } it 'behaves the same as Enumerable#map with Tuple#[]' do should == object.map { |tuple| [ tuple[:id] ] } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/algebra/projection/methods/project_spec.rb |