Sha256: c6d2f774ab18c19289a296bed56556ba40d1c9848b3b581376f0e94bc1d0ebb4
Contents?: true
Size: 417 Bytes
Versions: 2
Compression:
Stored size: 417 Bytes
Contents
require 'compiler_helper' module Alf module Sequel describe Compiler, "union" do subject{ compile(expr) } context 'when the operand is fully compilable' do let(:expr){ union(suppliers, supplies) } specify do subject.sql.should eq("SELECT * FROM (SELECT * FROM `suppliers` AS 't1' UNION SELECT * FROM `supplies` AS 't2') AS 't3'") end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-sequel-0.14.0 | spec/compiler/test_union.rb |
alf-sequel-0.13.0 | spec/compiler/test_union.rb |