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