Sha256: 29ef3a44c3bd677de76625a5b8484ba782c95a7f1f8d826fadcb85c9e1576e0a

Contents?: true

Size: 718 Bytes

Versions: 4

Compression:

Stored size: 718 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe SQL::Generator::Function::Predicate, '#visit_veritas_function_predicate_greater_than_or_equal_to' do
  subject { object.visit_veritas_function_predicate_greater_than_or_equal_to(greater_than_or_equal_to) }

  let(:described_class)          { Class.new(SQL::Generator::Visitor) { include SQL::Generator::Function::Predicate } }
  let(:greater_than_or_equal_to) { Attribute::Integer.new(:id).gte(1)                                                 }
  let(:object)                   { described_class.new                                                                }

  it_should_behave_like 'a generated SQL expression'

  its(:to_s) { should eql('"id" >= 1') }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-sql-generator-0.0.7 spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_greater_than_or_equal_to_spec.rb
veritas-sql-generator-0.0.6 spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_greater_than_or_equal_to_spec.rb
veritas-sql-generator-0.0.5 spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_greater_than_or_equal_to_spec.rb
veritas-sql-generator-0.0.4 spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_greater_than_or_equal_to_spec.rb