Sha256: 2771fb3e40f076e47fd69eac6346e46181c035ae319f39eddebc2bf4cea49176

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Evaluator::Expression#expressions' do
  subject { object.expressions }

  let(:klass)     { Evaluator::Expression                        }
  let(:attribute) { Attribute::Integer.new(:id)                  }
  let(:function)  { mock('Function')                             }
  let(:object)    { klass.new { |o| o.add(attribute, function) } }

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

  it { should be_frozen }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/evaluator/expression/expressions_spec.rb