Sha256: d24db43e107090f2597243f8d2c21ccf69f2802f0aca4d6ccb2d24b658e0cbf5

Contents?: true

Size: 578 Bytes

Versions: 1

Compression:

Stored size: 578 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

[ :product, :* ].each do |method|
  describe Algebra::Product::Methods, "##{method}" do
    subject { object.send(method, other) }

    let(:described_class) { Relation                                                                            }
    let(:object)          { described_class.new([ [ :id,   Integer ] ], LazyEnumerable.new([ [ 1          ] ])) }
    let(:other)           { described_class.new([ [ :name, String  ] ], LazyEnumerable.new([ [ 'Dan Kubb' ] ])) }

    it { should be_instance_of(Algebra::Product) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/algebra/product/methods/product_spec.rb