Sha256: 88d47f9439d3d66ed8dd91d541235d74576df00ca1f726bd1d6efa1000ef5b4e

Contents?: true

Size: 266 Bytes

Versions: 4

Compression:

Stored size: 266 Bytes

Contents

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

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

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

    it{ should be_false }

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