Sha256: 44c4982a41685561e5fff6e483fb69b9fde088e9bd7e10423d1ef29e7d84935c

Contents?: true

Size: 263 Bytes

Versions: 4

Compression:

Stored size: 263 Bytes

Contents

require 'spec_helper'
module Alf
  describe Keys, "map" do

    subject{ keys.map{|k| k | [:foo] } }

    let(:keys) { 
      Keys[ [:a], [:name] ]
    }
    let(:expected) { 
      Keys[ [:a, :foo], [:name, :foo] ]
    }

    it{ should eq(expected) }

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-types/keys/test_map.rb
alf-core-0.14.0 spec/unit/alf-types/keys/test_map.rb
alf-core-0.13.1 spec/unit/alf-types/keys/test_map.rb
alf-core-0.13.0 spec/unit/alf-types/keys/test_map.rb