# 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