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