Sha256: 8086d2f0cc6830fd9123e3dea8fcfc291ccd57cc09945f3e6df05cd9305f28b0

Contents?: true

Size: 522 Bytes

Versions: 5

Compression:

Stored size: 522 Bytes

Contents

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

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

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

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

      subject{ operator.to_a }

      context "with Lispy" do
        let(:operator){ Lispy.wrap(input, [:a, :b], :wraped) }
        it { should eq(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_wrap.rb
alf-0.12.1 spec/unit/alf-core/operator/relational/test_wrap.rb
alf-0.12.0 spec/unit/alf-core/operator/relational/test_wrap.rb
alf-0.11.1 spec/unit/alf-core/operator/relational/test_wrap.rb
alf-0.11.0 spec/unit/alf-core/operator/relational/test_wrap.rb