Sha256: a15a46038bec37049412c569c99a3e14f130489a2ad7223fee4071f48775b9b0
Contents?: true
Size: 724 Bytes
Versions: 2
Compression:
Stored size: 724 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]], LazyEnumerable.new([[1, 'Dan Kubb']])) } it { should be_instance_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/algebra/projection/methods/remove_spec.rb |
axiom-0.1.1 | spec/unit/axiom/algebra/projection/methods/remove_spec.rb |