Sha256: 8a422cf8ba1803e2cfafd5f836e35c29adfae10065b66670031605d0b758abed

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Evaluator::Context, '#[]' do
  subject { object[name] }

  let(:name)      { :id                                 }
  let(:attribute) { Attribute::Integer.new(name)        }
  let(:header)    { Relation::Header.new([ attribute ]) }
  let(:object)    { described_class.new(header) {}      }

  it { should equal(attribute) }
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/evaluator/context/element_reader_spec.rb
veritas-0.0.7 spec/unit/veritas/evaluator/context/element_reference_spec.rb
veritas-0.0.6 spec/unit/veritas/evaluator/context/element_reference_spec.rb
veritas-0.0.5 spec/unit/veritas/evaluator/context/element_reference_spec.rb
veritas-0.0.4 spec/unit/veritas/evaluator/context/element_reference_spec.rb