Sha256: 818980c1032331631c303d61981d3b211d419dfc2c9bd6df892d68b15d7fdaca

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Evaluator::Context, '#functions' do
  subject { object.functions }

  let(:attribute) { Attribute::Integer.new(:id)                                              }
  let(:header)    { Relation::Header.new([attribute])                                        }
  let(:function)  { proc {}                                                                  }
  let(:object)    { described_class.new(header) { |object| object.add(attribute, function) } }

  it { should == { attribute => function } }

  it { should be_frozen }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/evaluator/context/functions_spec.rb