Sha256: 3ecddea2d00793e6e52632bf4b96f8665616bc97c26ef7d97c2e7d8565e564b4

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.1 spec/unit/veritas/algebra/projection/methods/remove_spec.rb