Sha256: f0eedd0ce469c9790633a93e77d5c9f56b46d0b13d89d9ea848abfc83b6055f0

Contents?: true

Size: 432 Bytes

Versions: 4

Compression:

Stored size: 432 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:attribute)    { Attribute::Integer.new(:id)                  }
  let(:header)       { Relation::Header.new([ attribute ])          }
  let(:return_value) { mock('Return Value')                         }
  let(:object)       { described_class.new(header) { return_value } }

  it { should equal(return_value) }
end

Version data entries

4 entries across 4 versions & 2 rubygems

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