Sha256: 2ec86ff36d62aa58fe76fcd834796b1de6911a5cf17dbaf915e762a2e37430f8

Contents?: true

Size: 265 Bytes

Versions: 4

Compression:

Stored size: 265 Bytes

Contents

require 'spec_helper'
module Alf
  describe Keys, "any?" do

    subject{ keys.any?{|k| (k & [:name]).empty? } }

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

    it{ should be_true }

  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_any.rb
alf-core-0.14.0 spec/unit/alf-types/keys/test_any.rb
alf-core-0.13.1 spec/unit/alf-types/keys/test_any.rb
alf-core-0.13.0 spec/unit/alf-types/keys/test_any.rb