require 'spec_helper' describe 'Veritas::Algebra::Projection::Methods#remove' do subject { relation.remove([ :id ]) } let(:relation) { Relation.new([ [ :id, Integer ], [ :name, String ] ], [ [ 1, 'Dan Kubb' ] ]) } it { should be_kind_of(Algebra::Projection) } its(:header) { should == [ [ :name, String ] ] } it 'behaves the same as Enumerable#map with Tuple#[]' do should == relation.map { |tuple| [ tuple[:name] ] } end end