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