Sha256: 337cb5284e3d52ea24a1c74956f869a996ef5ca05ff2abff974c80399fa36471
Contents?: true
Size: 935 Bytes
Versions: 4
Compression:
Stored size: 935 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe SQL::Generator::Relation::Binary::Base, '#visit_veritas_relation_base' do subject { object.visit_veritas_relation_base(base_relation) } let(:relation_name) { 'users' } let(:id) { Attribute::Integer.new(:id) } let(:name) { Attribute::String.new(:name) } let(:age) { Attribute::Integer.new(:age, :required => false) } let(:header) { [ id, name, age ] } let(:body) { [ [ 1, 'Dan Kubb', 35 ] ].each } let(:base_relation) { Relation::Base.new(relation_name, header, body) } let(:object) { described_class.new } it_should_behave_like 'a generated SQL SELECT query' its(:name) { should eql('users') } its(:to_subquery) { should eql('"users"') } end
Version data entries
4 entries across 4 versions & 1 rubygems