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