Sha256: 5ba7f8e5b7224c83e458ad24d2f6e2cec2b78dd65cf836602118d29794580e84

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

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

  it_should_behave_like 'an idempotent method'

  it { should == { Attribute::Object.new(:test) => 1 } }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/algebra/extension/extensions_spec.rb
axiom-0.1.1 spec/unit/axiom/algebra/extension/extensions_spec.rb