Sha256: 48fbe131e377d8f0326c3ed401ef348b01c32affd30abd7b4ed8848f0dbb30e7

Contents?: true

Size: 415 Bytes

Versions: 4

Compression:

Stored size: 415 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Function::Connective::Conjunction, '#inspect' do
  subject { object.inspect }

  let(:attribute) { Attribute::Integer.new(:id)      }
  let(:left)      { attribute.gt(1)                  }
  let(:right)     { attribute.lt(3)                  }
  let(:object)    { described_class.new(left, right) }

  it { should == "(#{left.inspect} AND #{right.inspect})" }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-0.0.7 spec/unit/veritas/function/connective/conjunction/inspect_spec.rb
veritas-0.0.6 spec/unit/veritas/function/connective/conjunction/inspect_spec.rb
veritas-0.0.5 spec/unit/veritas/function/connective/conjunction/inspect_spec.rb
veritas-0.0.4 spec/unit/veritas/function/connective/conjunction/inspect_spec.rb