Sha256: a009caa6e5a7c3119d5234b02f3af8ce51fcb53bf298cb0ecbc6b48c840f3a34
Contents?: true
Size: 636 Bytes
Versions: 4
Compression:
Stored size: 636 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe SQL::Generator::Function::Numeric, '#visit_veritas_function_numeric_addition' do subject { object.visit_veritas_function_numeric_addition(addition) } let(:described_class) { Class.new(SQL::Generator::Visitor) { include SQL::Generator::Function::Numeric } } let(:addition) { Attribute::Integer.new(:number).add(1) } let(:object) { described_class.new } it_should_behave_like 'a generated SQL expression' its(:to_s) { should eql('("number" + 1)') } end
Version data entries
4 entries across 4 versions & 1 rubygems