Sha256: bbee86d8b18e565d66e8926f3223fe3e395079323c98c97471214ce584c0a1c4

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 Bytes

Contents

require 'spec_helper'
module Alf
  module Sql
    class Processor
      describe Rename, "on_select_list" do

        subject{ Rename.new(Renaming[a: :b, c: :d], Builder.new).on_select_list(expr) }

        let(:expr){
          select_list("a" => "a", "x" => "c", "y" => "z")
        }

        let(:expected){
          select_list("a" => "b", "x" => "d", "y" => "z")
        }

        it{ should eq(expected) }

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-sql-0.16.3 spec/processor/rename/test_on_select_list.rb
alf-sql-0.16.2 spec/processor/rename/test_on_select_list.rb
alf-sql-0.16.1 spec/processor/rename/test_on_select_list.rb
alf-sql-0.16.0 spec/processor/rename/test_on_select_list.rb
alf-sql-0.15.0 spec/processor/rename/test_on_select_list.rb