Sha256: bb3c710f81b17cc77f169d646c43724e332b767417743593d1d5976b8bb0f0fe

Contents?: true

Size: 534 Bytes

Versions: 5

Compression:

Stored size: 534 Bytes

Contents

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

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

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

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

      subject{ operator.to_a }

      context "when factored with Lispy" do
        let(:operator){ Lispy.unwrap(input, :wrapped) }
        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_unwrap.rb
alf-0.12.1 spec/unit/alf-core/operator/relational/test_unwrap.rb
alf-0.12.0 spec/unit/alf-core/operator/relational/test_unwrap.rb
alf-0.11.1 spec/unit/alf-core/operator/relational/test_unwrap.rb
alf-0.11.0 spec/unit/alf-core/operator/relational/test_unwrap.rb