Sha256: dfd1b023c4ba25b12a817ec3b756dd88044ac7ea20664728ec5f2de99f12579d

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Logic::Connective::Disjunction#inspect' do
  subject { object.inspect }

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/logic/connective/disjunction/inspect_spec.rb