Sha256: c27af71f7f64a63e035a3c3337cd679a482033c0fc2d51bff11fba2c03bd4675

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 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

2 entries across 2 versions & 1 rubygems

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