Sha256: 2761cb9c60535ba0fd1dfc617fd3d54ef5a12150fa41fd71a1e65df2ded56a4b
Contents?: true
Size: 486 Bytes
Versions: 5
Compression:
Stored size: 486 Bytes
Contents
require 'spec_helper' module Alf module Sql class Processor describe Rename do subject{ Rename.new(Renaming[a: :b], Builder.new).call(expr) } context 'on a select_exp' do let(:expr){ select_all_a } it{ should eq(select_all_a_as_b) } end context 'on a with_exp' do let(:expr){ with_exp(nil, select_all_a) } it{ should eq(with_exp(nil, select_all_a_as_b)) } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems