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