Sha256: dfb7cdd6402027a403567ac9c0e5df00ee97ba6e51218ca863a1236d84818bfc

Contents?: true

Size: 427 Bytes

Versions: 5

Compression:

Stored size: 427 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Algebra::Extension, '#operand' do
  subject { object.operand }

  let(:operand)    { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ]) }
  let(:extensions) { { :test => lambda { |tuple| 1 } }                    }
  let(:object)     { described_class.new(operand, extensions)             }

  it_should_behave_like 'an idempotent method'

  it { should equal(operand) }
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/algebra/extension/operand_spec.rb
veritas-0.0.7 spec/unit/veritas/algebra/extension/operand_spec.rb
veritas-0.0.6 spec/unit/veritas/algebra/extension/operand_spec.rb
veritas-0.0.5 spec/unit/veritas/algebra/extension/operand_spec.rb
veritas-0.0.4 spec/unit/veritas/algebra/extension/operand_spec.rb