Sha256: d26761cac743d249372e0359d04d69ce4d1d3fc582480f4f3a433a2676cf4fb2
Contents?: true
Size: 881 Bytes
Versions: 4
Compression:
Stored size: 881 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe SQL::Generator::Function::Connective, '#visit_veritas_function_connective_disjunction' do subject { object.visit_veritas_function_connective_disjunction(disjunction) } let(:described_class) { Class.new(SQL::Generator::Visitor) { include SQL::Generator::Function::Connective } } let(:attribute) { Attribute::Integer.new(:id) } let(:disjunction) { attribute.eq(1).or(attribute.eq(2)) } let(:object) { described_class.new } before do described_class.class_eval { include SQL::Generator::Function::Predicate } end it_should_behave_like 'a generated SQL expression' its(:to_s) { should eql('("id" = 1 OR "id" = 2)') } end
Version data entries
4 entries across 4 versions & 1 rubygems