Sha256: a949d574077d08aeb363b7894d66288916ada178b06397acca0cd9fce83aefef

Contents?: true

Size: 486 Bytes

Versions: 5

Compression:

Stored size: 486 Bytes

Contents

require 'spec_helper'
module Alf
  module Operator::Relational
    describe Rename do

      let(:operator_class){ Rename }
      it_should_behave_like("An operator class")

      let(:input) {[
        {:a => "a", :b => "b"},
      ]}

      let(:expected){[
        {:z => "a", :b => "b"},
      ]}

      subject{ operator.to_a }

      context "with Lispy" do 
        let(:operator){ Lispy.rename(input, {:a => :z}) }
        it{ should == expected }
      end

    end 
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.12.2 spec/unit/alf-core/operator/relational/test_rename.rb
alf-0.12.1 spec/unit/alf-core/operator/relational/test_rename.rb
alf-0.12.0 spec/unit/alf-core/operator/relational/test_rename.rb
alf-0.11.1 spec/unit/alf-core/operator/relational/test_rename.rb
alf-0.11.0 spec/unit/alf-core/operator/relational/test_rename.rb