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