Sha256: 8612ca35c42d8a2c5418f2ec4e49fd5f3f14ca23cac3f446ef979d7ce1224b31

Contents?: true

Size: 367 Bytes

Versions: 9

Compression:

Stored size: 367 Bytes

Contents

require 'spec_helper'
module Alf
  module Engine
    describe Unwrap do

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

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

      it "should unwrap as expected" do
        Unwrap.new(input, :wrapped).to_a.should eq(expected)
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-engine/test_unwrap.rb
alf-core-0.14.0 spec/unit/alf-engine/test_unwrap.rb
alf-core-0.13.1 spec/unit/alf-engine/test_unwrap.rb
alf-core-0.13.0 spec/unit/alf-engine/test_unwrap.rb
alf-0.12.2 spec/unit/alf-engine/test_unwrap.rb
alf-0.12.1 spec/unit/alf-engine/test_unwrap.rb
alf-0.12.0 spec/unit/alf-engine/test_unwrap.rb
alf-0.11.1 spec/unit/alf-engine/test_unwrap.rb
alf-0.11.0 spec/unit/alf-engine/test_unwrap.rb